mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-06-25 04:28:39 +00:00
crude basic animation and button
This commit is contained in:
@@ -154,6 +154,10 @@ const Editor = createReactClass({
|
||||
this.codeEditor.current?.injectText(injectText);
|
||||
},
|
||||
|
||||
handleFormatCode: function () {
|
||||
this.codeEditor.current?.formatCode();
|
||||
},
|
||||
|
||||
handleViewChange : function(newView){
|
||||
this.props.setMoveArrows(newView === 'text');
|
||||
|
||||
@@ -333,6 +337,7 @@ const Editor = createReactClass({
|
||||
redo={this.redo}
|
||||
foldCode={this.foldCode}
|
||||
unfoldCode={this.unfoldCode}
|
||||
formatCode={this.isStyle() ? this.handleFormatCode : null}
|
||||
historySize={this.historySize()}
|
||||
currentEditorTheme={this.state.editorTheme}
|
||||
updateEditorTheme={this.updateEditorTheme}
|
||||
|
||||
Reference in New Issue
Block a user