Add several setter shims to ReactEditorView

This commit is contained in:
Corey Johnson 2014-06-09 16:03:20 -07:00
parent be20148518
commit 0396aac11f

View File

@ -164,6 +164,18 @@ class ReactEditorView extends View
setWidthInChars: (widthInChars) -> setWidthInChars: (widthInChars) ->
@component.getDOMNode().style.width = (@editor.getDefaultCharWidth() * widthInChars) + 'px' @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: -> getText: ->
@editor.getText() @editor.getText()