         gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter']
         tabSize: 4
     })
-    cmTaskpaper.title.text = 'CodeMirror View'
-    cmTaskpaper.title.closable = true
+    textView.title.text = 'Text View'
+    textView.title.closable = true
 
     # Initialize CodeMirror document
-    doc = cmTaskpaper.editor.doc
+    doc = textView.editor.doc
     docView = new DocView(syncMaster, doc)
 
     # Initialize outline

    spy.panel = panel

    coffeeconsole = new CoffeeConsoleWidget()
    coffeeconsole.title.text = 'CoffeeScript REPL'
    coffeeconsole.title.closable = true

    linkViewWidget = new LinkViewWidget(syncMaster)

    spy.docView = docView
    spy.outlineView = outlineView

    panel.insertRight(textView)
    panel.insertBottom(coffeeconsole, textView)
    panel.insertLeft(linkViewWidget)

    spy.ctp = spy.textView = textView
    spy.cc = spy.coffeeconsole = coffeeconsole
    spy.lvw = spy.textView = linkViewWidget


    panel.attach(document.body)
