     {actionType} = options
     itemData     = {}
 
-    snippet = @aceEditor.getValue()
+    snippet = @aceEditor?.getValue()
     if @snippetType is "Text"
-      snippet = """new KDView({partial: "#{@aceEditor.getValue()}"});"""
+      snippet = """new KDView({partial: "#{@aceEditor?.getValue()}"});"""
 
     if type is "Item" or (type is "Group" and actionType is "Insert")
       itemData = {


    super options, data

    @utils.defer => @setAceEditor()

  save: ->
    {actionType} = @getOptions()

        introTitle : inputs.IntroTitle.getValue()
        snippet
      }

    if type is "Group"
      data = {
