diff --git a/monaco-editor-iframe.js b/monaco-editor-iframe.js index a4d46cc..3b5b0c8 100644 --- a/monaco-editor-iframe.js +++ b/monaco-editor-iframe.js @@ -118,6 +118,14 @@ }); } + trigger(source, handlerId, payload) { + this.postMessage({ + path: ['editor'], + event: 'trigger', + args: [source, handlerId, payload] + }); + } + getModel() { return { setValue: value => {