- selectNode: function(node) {\r
- view._markSelected(node);\r
- var range = document.createRange();\r
- range.selectNodeContents(node[0]);\r
- range.collapse(false);\r
-\r
- var selection = document.getSelection();\r
- selection.removeAllRanges()\r
- selection.addRange(range);\r
- },\r
- selectNodeById: function(id) {\r
- var node = this.node.find('#'+id);\r
- if(node)\r
- this.selectNode(node);\r
- },\r
- highlightNode: function(node) {\r