Clipboard, model-based (focus-independent, so they also work from the context menu, and paste is a
single undo). No-op until the editor has mounted. These are what the editor's copy/cut/paste
commands and its context-menu items call — NOT Monaco's built-in clipboard actions, which depend on
editor focus and so fail from the (focus-stealing) context menu.
Returns Promise<void>
cut
cut():Promise<void>
Returns Promise<void>
getScripts
getScripts():IScript
Returns IScript
insertSnippet
insertSnippet(snippet:string):Promise<void>
Parameters
snippet: string
Returns Promise<void>
isScriptEditorElement
isScriptEditorElement():true
Returns true
paste
paste():Promise<void>
Returns Promise<void>
runAction
runAction(actionId:string):void
Run a Monaco editor action by id (e.g. editor.action.selectAll). The editor owns its own
selection, so selectAll routes here rather than through the generic input-clipboard injector.
No-op until the editor has mounted. Not for clipboard — see copy/cut/paste.
Clipboard, model-based (focus-independent, so they also work from the context menu, and paste is a single undo). No-op until the editor has mounted. These are what the editor's
copy/cut/pastecommands and its context-menu items call — NOT Monaco's built-in clipboard actions, which depend on editor focus and so fail from the (focus-stealing) context menu.