     return  unless id
 
     @_snapshots[id] ?= {}
-    for view in ['editor', 'readme', 'logs']
+    for view in EDITORS
       @_snapshots[id][view] = @[view]._dump()
 
 


  setTemplateData: (data) ->

    if data
      @setData data
      @toolbar.setData data

    { _id: id, title, description, template } = @getData()
    unless id or description or template


      @editor.setContent Encoder.htmlDecode template.rawContent
      @readme.setContent description
      @variables.setContent ''
      @variablesController.setData data
      @logs.setContent 'Stack template loaded'

      @_saveSnapshot id
