Merge branch 'code-folding' into codemirror-tweaks
# Conflicts: # shared/naturalcrit/codeEditor/codeEditor.jsx
This commit is contained in:
commit
2ea6610c57
2 files changed
+3
-10
No files matched your search
@@ -92,8 +92,6 @@ const CodeEditor = createClass({
|
||||
'Cmd-M' : this.makeSpan,
|
||||
'Ctrl-/' : this.makeComment,
|
||||
'Cmd-/' : this.makeComment,
|
||||
'Ctrl-\\' : this.toggleCodeFolded,
|
||||
'Cmd-\\' : this.toggleCodeFolded,
|
||||
'Ctrl-[' : this.foldAllCode,
|
||||
'Cmd-[' : this.foldAllCode,
|
||||
'Ctrl-]' : this.unfoldAllCode,
|
||||
@@ -171,10 +169,6 @@ const CodeEditor = createClass({
|
||||
}
|
||||
},
|
||||
|
||||
toggleCodeFolded : function() {
|
||||
this.codeMirror.foldCode(this.codeMirror.getCursor());
|
||||
},
|
||||
|
||||
foldAllCode : function() {
|
||||
this.codeMirror.execCommand('foldAll');
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user