Add 'cm' argument to selectAll

This commit is contained in:
ficristo
2019-03-27 19:56:18 +01:00
parent be3917c643
commit 57dabe603a
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -1224,7 +1224,7 @@ declare namespace CodeMirror {
interface CommandActions {
/** Select the whole content of the editor. */
selectAll(): void;
selectAll(cm: CodeMirror.Editor): void;
/** When multiple selections are present, this deselects all but the primary selection. */
singleSelection(cm: CodeMirror.Editor): void;
-1
View File
@@ -101,5 +101,4 @@ widget2.clear();
htmlElement1.remove();
htmlElement2.remove();
CodeMirror.commands.selectAll();
CodeMirror.commands.newlineAndIndent(myCodeMirror);