mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 20:42:43 +00:00
Merge branch 'code-folding' into codemirror-tweaks
# Conflicts: # shared/naturalcrit/codeEditor/codeEditor.jsx
This commit is contained in:
@@ -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