       @keysRef.push
         type      : "preview"
         sessionKey: preview.sessionKey
+        indexKey  : indexKey
 
     @workspace.addToHistory "$0 opened a new browser"
 

      terminal.on "WebtermCreated", =>
        @keysRef.push
          type       : "terminal"
          sessionKey :
            key      : terminal.remote.session
            host     : KD.nick()

        indexKey   : indexKey


  createEditor: (file, content = "", sessionKey, indexKey) ->
    isLocal  = not file
    file     = file or FSHelper.createFileFromPath "localfile:/untitled.txt"
    indexKey = indexKey or @createSessionKey()
    pane     = new KDTabPaneView { title: file.name, indexKey }
    delegate = @getDelegate()
    editor   = new CollaborativeEditorPane { delegate, sessionKey, file, content }

