Add ReactEditorView::getText

This commit is contained in:
Nathan Sobo
2014-06-06 16:31:39 +09:00
parent d7ee81418d
commit 7dae04b8d4

View File

@@ -134,6 +134,9 @@ class ReactEditorView extends View
setWidthInChars: (widthInChars) ->
@component.getDOMNode().style.width = (@editor.getDefaultCharWidth() * widthInChars) + 'px'
getText: ->
@editor.getText()
setText: (text) ->
@editor.setText(text)