0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-08 07:32:40 +00:00
This commit is contained in:
Trevor Buckner
2021-08-31 12:03:59 -04:00
parent 13ba5ebcc8
commit e14c8c5e91

View File

@@ -68,10 +68,9 @@ const Editor = createClass({
}, },
handleInject : function(injectText){ handleInject : function(injectText){
const text = ( let text;
this.isText() ? this.props.brew.text : if(this.isText()) text = this.props.brew.text;
this.isStyle() ? this.props.brew.style ?? DEFAULT_STYLE_TEXT : '' if(this.isStyle()) text = this.props.brew.style ?? DEFAULT_STYLE_TEXT;
);
const lines = text.split('\n'); const lines = text.split('\n');
const cursorPos = this.refs.codeEditor.getCursorPosition(); const cursorPos = this.refs.codeEditor.getCursorPosition();