code: function _expandParentsForNode(node) {
          // get the actual parent nodes in the editor
          var parents = [];
          $(node).parentsUntil('#tinymce').each(function(index, el) {
              parents.push(el.id);
          });
          parents.reverse();
          
          // TODO handling for readonly mode where only headings are in the tree
          
          // expand the corresponding nodes in the tree
          for (var i = 0; i < parents.length; i++) {
              var parentId = parents[i];
              var parentNode = $('[name="'+parentId+'"]', $tree);
              var isOpen = $tree.jstree('is_open', parentNode);
              if (!isOpen) {
                  $tree.jstree('open_node', parentNode, null, false);
              }
          }
      }
docs: Expands the parents of a particular node
  @param {element} node A node that exists in the editor