0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 22:52:40 +00:00

Default 'legacy' if not set. Auto-change styles.

* Fix brew styles overwriting each other.

* Word wrapping, start fixing spacing on Title letter

* Fix \page in legacy brews when not at line start

* Fix Page Padding

* Set 'legacy' as default value if not set in brew saved file.
This commit is contained in:
Trevor Buckner
2021-02-08 15:09:09 -05:00
committed by GitHub
parent e5ccfa3a50
commit ee4ecc0b41
7 changed files with 21 additions and 23 deletions

View File

@@ -62,15 +62,11 @@ const CodeEditor = createClass({
},
componentDidUpdate : function(prevProps) {
if(this.codeMirror && this.props.value !== undefined && this.codeMirror.getValue() != this.props.value) {
if(this.codeMirror && this.codeMirror.getValue() != this.props.value) {
this.codeMirror.setValue(this.props.value);
}
},
shouldComponentUpdate : function(nextProps, nextState) {
return false;
},
setCursorPosition : function(line, char){
setTimeout(()=>{
this.codeMirror.focus();