WIP: Refactoring canvas api - canvas, canvasNode + tests
[fnpeditor.git] / modules / rng / rng.js
index 7c39d0f..a1fe65e 100644 (file)
@@ -254,11 +254,7 @@ return function(sandbox) {
             sandbox.getModule('documentCanvas').toggleGrid(toggle);\r
         },\r
         newNodeRequested: function(wlxmlTag, wlxmlClass) {\r
-            if(window.getSelection().isCollapsed) {\r
                 sandbox.getModule('documentCanvas').insertNewNode(wlxmlTag, wlxmlClass);\r
-            } else {\r
-                sandbox.getModule('documentCanvas').wrapSelectionWithNewNode(wlxmlTag, wlxmlClass);\r
-            }\r
         },\r
         command: function(cmd, meta) {\r
             sandbox.getModule('documentCanvas').command(cmd, meta);\r