mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Restore source-editor commands controller for scratchpad & styleeditor menus
https://github.com/MoonchildProductions/moebius/pull/290
This commit is contained in:
parent
3d03678642
commit
28ab3c0e0d
5 changed files with 114 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue