 
 Events = require '../events'
 BaseView = require './baseview'
+
+yamlutils = require 'app/util/stacks/yamlutils'
 
 
 module.exports = class Editor extends BaseView

    @getPreview = preview  if preview


  getContent: ->

    @aceView.ace.getContents()


  setContent: (content, type = 'text') -> @ready =>



  setReadOnly: (state) -> @ready =>

    if intialState = @getOption 'readonly'
      state = intialState

    @aceView.ace.setReadOnly state, no
    state = if state then 'none' else 'block'
