fixing f16638a725925fce791fe40d85f5aca28b514dad
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 11 Jul 2013 14:22:08 +0000 (16:22 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 11 Jul 2013 14:22:08 +0000 (16:22 +0200)
modules/documentCanvas/canvasManager.js

index dbf414b..afc3363 100644 (file)
@@ -203,7 +203,7 @@ Manager.prototype.command = function(command, params) {
         // this.sandbox.publish('contentChanged');
         if(this.canvas.list.areItemsOfTheSameList({element1: parent1, element2: parent2})) {
             this.canvas.list.extractItems({element1: parent1, element2: parent2});
-        } else if (!selection.collapsed) {
+        } else if (selection.isCollapsed) {
             element1.unwrap();
         }
     } else if(command === 'wrap-node') {