diff --git a/src/editor-component.coffee b/src/editor-component.coffee index 4461ae6da..38a5903c2 100644 --- a/src/editor-component.coffee +++ b/src/editor-component.coffee @@ -724,15 +724,15 @@ EditorComponent = React.createClass setFontSize: (fontSize) -> @setState({fontSize}) - setLineHeight: (lineHeight) -> - @setState({lineHeight}) - getFontFamily: -> @state.fontFamily setFontFamily: (fontFamily) -> @setState({fontFamily}) + setLineHeight: (lineHeight) -> + @setState({lineHeight}) + setShowIndentGuide: (showIndentGuide) -> @setState({showIndentGuide}) diff --git a/src/react-editor-view.coffee b/src/react-editor-view.coffee index 12abb2190..5eb953105 100644 --- a/src/react-editor-view.coffee +++ b/src/react-editor-view.coffee @@ -136,9 +136,15 @@ class ReactEditorView extends View getFontFamily: -> @component?.getFontFamily() + setFontFamily: (fontFamily)-> + @component?.setFontFamily(fontFamily) + getFontSize: -> @component?.getFontSize() + setFontSize: (fontSize)-> + @component?.setFontSize(fontSize) + setWidthInChars: (widthInChars) -> @component.getDOMNode().style.width = (@editor.getDefaultCharWidth() * widthInChars) + 'px'