mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 20:42:43 +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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user