cleanup
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 24 Jun 2013 14:09:48 +0000 (16:09 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 24 Jun 2013 14:09:48 +0000 (16:09 +0200)
modules/documentToolbar/documentToolbar.js

index c459428..e364e99 100644 (file)
@@ -33,12 +33,6 @@ return function(sandbox) {
                             wlxmlTag = split[0];\r
                             wlxmlClass = split[1];\r
                         }\r
-                        if(window.getSelection().isCollapsed) {\r
-                            //view.insertNewNode(wlxmlTag, wlxmlClass);\r
-                        }\r
-                        else {\r
-                            //this.wrapWithNodeRequest(wlxmlTag, wlxmlClass);\r
-                        }\r
                         sandbox.publish('newNodeRequested', wlxmlTag, wlxmlClass);\r
                     } else {\r
                         sandbox.publish('command', btn.attr('data-btn'), btn.attr('data-meta'));\r