Expose CodeMirror functions in codeEditor.jsx

This commit is contained in:
G.Ambatte committed 2021-10-18 22:29:25 +13:00
1 parent bfcb29ff9c
commit ab2900cadf
1 file changed
+5 -2
+5 -2
View File
@@ -114,10 +114,13 @@ const CodeEditor = createClass({
this.codeMirror.refresh();
},
redo : function(){
this.codeMirror.redo();
return this.codeMirror.redo();
},
undo : function(){
this.codeMirror.undo();
return this.codeMirror.undo();
},
historySize : function(){
return this.codeMirror.doc.historySize();
},
//----------------------//