mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Add several setter shims to ReactEditorView
This commit is contained in:
parent
be20148518
commit
0396aac11f
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user