editor can set code

This commit is contained in:
Chris Wanstrath
2011-11-13 18:03:47 -08:00
parent f97fc0eee6
commit cc7a933545

View File

@@ -116,6 +116,9 @@ class Editor extends Resource
code: ->
@ace.getSession().getValue()
setCode: (code) ->
@ace.getSession().setValue code
removeTrailingWhitespace: ->
return
@ace.replaceAll "",