nodeBreadCrumbs module
[fnpeditor.git] / modules / documentCanvas / documentCanvas.js
index 93d1866..f9a8b7a 100644 (file)
@@ -157,9 +157,9 @@ return function(sandbox) {
         _markSelected: function(node) {\r
             this.dimNode(node);\r
             \r
         _markSelected: function(node) {\r
             this.dimNode(node);\r
             \r
-            this.node.find('.rng-current').removeClass('rng-current');\r
+            this.node.find('.rng-module-documentCanvas-currentNode').removeClass('rng-module-documentCanvas-currentNode');\r
             \r
             \r
-            node.addClass('rng-current');\r
+            node.addClass('rng-module-documentCanvas-currentNode');\r
 \r
             this.currentNode = node;\r
             sandbox.publish('nodeSelected', node);\r
 \r
             this.currentNode = node;\r
             sandbox.publish('nodeSelected', node);\r
@@ -248,8 +248,16 @@ return function(sandbox) {
         },\r
         selectNode: function(id) {\r
             view.selectNodeById(id);\r
         },\r
         selectNode: function(id) {\r
             view.selectNodeById(id);\r
+        },\r
+        toggleGrid: function(toggle) {\r
+            view.toggleGrid(toggle);\r
+        },\r
+        insertNewNode: function(wlxmlTag, wlxmlClass) {\r
+            view.insertNewNode(wlxmlTag, wlxmlClass);\r
+        },\r
+        wrapSelectionWithNewNode: function(wlxmlTag, wlxmlClass) {\r
+            view.wrapSelectionWithNewNode(wlxmlTag, wlxmlClass);\r
         }\r
         }\r
-        \r
     }\r
     \r
 };\r
     }\r
     \r
 };\r