       @treeIDPrefix = 'tmp_tree_'
       @ignoreNavigation = false
       @jsTree = $(@treeSelector)
+
       @jsTree.jstree @_jstreeOptions()
       if makeNodeTitle?
         @makeNodeTitle = makeNodeTitle
       @previousNode = null
       @elementHandler = new ElementHandler(@editor)
 
-    _jstreeOptions: (jsonData) ->
+    _jstreeOptions: (jsonData, initiallyOpen) ->
+      if not initiallyOpen?
+        initiallyOpen = []
       if not jsonData?
         jsonData =
           data:


      helper.depthFirstIterativePreorder body, @depthWalkCallback

      @jsTree.jstree(@_jstreeOptions([top['children']]))
        .on('select_node.jstree', @selectNodeCallback)
        .on('click.jstree', 'li.jstree-leaf > ins', (event) ->
            $(event.currentTarget).siblings('a').click()

        core:
          animation: 0
          html_titles: true
          initially_open: initiallyOpen
        contextmenu:
          select_node: true
          show_at_node: true
