mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
editor can set code
This commit is contained in:
@@ -116,6 +116,9 @@ class Editor extends Resource
|
||||
code: ->
|
||||
@ace.getSession().getValue()
|
||||
|
||||
setCode: (code) ->
|
||||
@ace.getSession().setValue code
|
||||
|
||||
removeTrailingWhitespace: ->
|
||||
return
|
||||
@ace.replaceAll "",
|
||||
|
||||
Reference in New Issue
Block a user