mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 03:37:04 +00:00
Expose CodeMirror functions in codeEditor.jsx
This commit is contained in:
1 parent
09b1543660
commit
fbabae8793
1 file changed
+5
-2
@@ -114,10 +114,13 @@ const CodeEditor = createClass({
|
|||||||
this.codeMirror.refresh();
|
this.codeMirror.refresh();
|
||||||
},
|
},
|
||||||
redo : function(){
|
redo : function(){
|
||||||
this.codeMirror.redo();
|
return this.codeMirror.redo();
|
||||||
},
|
},
|
||||||
undo : function(){
|
undo : function(){
|
||||||
this.codeMirror.undo();
|
return this.codeMirror.undo();
|
||||||
|
},
|
||||||
|
historySize : function(){
|
||||||
|
return this.codeMirror.doc.historySize();
|
||||||
},
|
},
|
||||||
//----------------------//
|
//----------------------//
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user