diff --git a/edit/codemirror-default.js b/edit/codemirror-default.js index 2885b08b..d0f6b8c2 100644 --- a/edit/codemirror-default.js +++ b/edit/codemirror-default.js @@ -230,7 +230,7 @@ // editor commands for (const name of ['save', 'toggleStyle', 'nextEditor', 'prevEditor']) { - CodeMirror.commands[name] = () => editor[name](); + CodeMirror.commands[name] = (...args) => editor[name](...args); } // CodeMirror convenience commands