     editor   = new CollaborativeEditorPane { delegate, sessionKey, file, content }
 
     @appendPane_ pane, editor
+    pane.editor = editor
+
     if @amIHost
       @keysRef.push
         type      : "editor"

    @createTabFromFirebaseData data  unless isExist

  listenIndexRef: ->

    @indexRef.on "value", (snapshot) =>
      data       = snapshot.val()
      {watchMap} = @workspace

              {terminal} = pane.terminalView.webterm
              terminal.scrollToBottom()
              terminal.container.trigger 'click'
            else if pane.editor
              pane.editor.codeMirrorEditor.refresh()

  createElements: ->
    @tabHandleHolder = new ApplicationTabHandleHolder delegate: this
