     @container = new KDView
 
     @container.on "viewAppended", =>
-      @codeMirrorEditor = CodeMirror @container.getDomElement()[0],
-        lineNumbers     : yes
-        mode            : "javascript"
-        extraKeys       :
-          "Cmd-S"       : @bound "save"
-
+      @createEditor()
       @panel      = @getDelegate()
       @workspace  = @panel.getDelegate()
       @sessionKey = @getOptions().sessionKey or @createSessionKey()

      log "client wants to save a file"
      @ref.child("WaitingSaveRequest").set yes

  pistachio: ->
    """
      {{> @header}}

class CollaborativeEditorPane extends CollaborativePane

  cdnRoot = "https://fatihacet.kd.io/cdn/codemirror/latest"

  constructor: (options = {}, data) ->

