0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-29 16:28:10 +00:00

fold all and unfold all restored

This commit is contained in:
Víctor Losada Hernández
2026-03-29 01:36:37 +01:00
parent 1d02fb9565
commit fb42675574
3 changed files with 24 additions and 14 deletions

View File

@@ -330,14 +330,13 @@ const Editor = createReactClass({
return this.codeEditor.current?.undo();
},
foldCode : function(){
return this.codeEditor.current?.foldAllCode();
},
unfoldCode : function(){
return this.codeEditor.current?.unfoldAllCode();
},
foldCode: function() {
return this.codeEditor.current?.foldAll();
},
unfoldCode: function() {
return this.codeEditor.current?.unfoldAll();
},
render : function(){
return (
<div className='editor' ref={this.editor}>