From 66e6aac50638d1f706f0ddaee1529a7b3cb47075 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Thu, 1 Mar 2018 13:45:40 +0100 Subject: Restore source-editor commands controller for scratchpad & styleeditor menus https://github.com/MoonchildProductions/moebius/pull/290 --- devtools/client/sourceeditor/editor.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'devtools/client/sourceeditor/editor.js') diff --git a/devtools/client/sourceeditor/editor.js b/devtools/client/sourceeditor/editor.js index ce2136afc..1b3c1d31a 100644 --- a/devtools/client/sourceeditor/editor.js +++ b/devtools/client/sourceeditor/editor.js @@ -488,6 +488,16 @@ Editor.prototype = { } }, + /** + * The source editor can expose several commands linked from system and context menus. + * Kept for backward compatibility with scratchpad and styleeditor. + */ + insertCommandsController: function () { + const { insertCommandsController } = + require("devtools/client/sourceeditor/editor-commands-controller"); + insertCommandsController(this); + }, + /** * Returns text from the text area. If line argument is provided * the method returns only that line. -- cgit v1.2.3