summaryrefslogtreecommitdiffstats
path: root/devtools/client/sourceeditor/editor.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 13:45:40 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-01 13:45:40 +0100
commit66e6aac50638d1f706f0ddaee1529a7b3cb47075 (patch)
tree61a0b0676d480c1e2253950312936deb1d0938b2 /devtools/client/sourceeditor/editor.js
parent03f6e7acb3f7907a932926f2f62659eafd04e866 (diff)
downloadUXP-66e6aac50638d1f706f0ddaee1529a7b3cb47075.tar
UXP-66e6aac50638d1f706f0ddaee1529a7b3cb47075.tar.gz
UXP-66e6aac50638d1f706f0ddaee1529a7b3cb47075.tar.lz
UXP-66e6aac50638d1f706f0ddaee1529a7b3cb47075.tar.xz
UXP-66e6aac50638d1f706f0ddaee1529a7b3cb47075.zip
Restore source-editor commands controller for scratchpad & styleeditor menus
https://github.com/MoonchildProductions/moebius/pull/290
Diffstat (limited to 'devtools/client/sourceeditor/editor.js')
-rw-r--r--devtools/client/sourceeditor/editor.js10
1 files changed, 10 insertions, 0 deletions
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
@@ -489,6 +489,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.
*/