Fix: command is broken
This commit is contained in:
parent
872f34f999
commit
0920569673
|
@ -230,7 +230,7 @@
|
||||||
|
|
||||||
// editor commands
|
// editor commands
|
||||||
for (const name of ['save', 'toggleStyle', 'nextEditor', 'prevEditor']) {
|
for (const name of ['save', 'toggleStyle', 'nextEditor', 'prevEditor']) {
|
||||||
CodeMirror.commands[name] = () => editor[name]();
|
CodeMirror.commands[name] = (...args) => editor[name](...args);
|
||||||
}
|
}
|
||||||
|
|
||||||
// CodeMirror convenience commands
|
// CodeMirror convenience commands
|
||||||
|
|
Loading…
Reference in New Issue
Block a user