From 0396aac11f0ca2e732cc0f21271613a2bdda74bb Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Mon, 9 Jun 2014 16:03:20 -0700 Subject: [PATCH] Add several setter shims to ReactEditorView --- src/react-editor-view.coffee | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/react-editor-view.coffee b/src/react-editor-view.coffee index a7a1e4622..f9e7035a2 100644 --- a/src/react-editor-view.coffee +++ b/src/react-editor-view.coffee @@ -164,6 +164,18 @@ class ReactEditorView extends View setWidthInChars: (widthInChars) -> @component.getDOMNode().style.width = (@editor.getDefaultCharWidth() * widthInChars) + 'px' + setLineHeight: (lineHeight) -> + @component.setLineHeight(lineHeight) + + setShowIndentGuide: (showIndentGuide) -> + @component.setShowIndentGuide(showIndentGuide) + + setSoftWrap: (softWrap) -> + @editor.setSoftWrap(softWrap) + + setShowInvisibles: (showInvisibles) -> + @component.setShowInvisibles(showInvisibles) + getText: -> @editor.getText()