mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add ReactEditorView::getText
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user