From: Aleksander Ɓukasz Date: Thu, 11 Jul 2013 14:22:08 +0000 (+0200) Subject: fixing f16638a725925fce791fe40d85f5aca28b514dad X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/20020035edf7edeb436a010dc55555c7a7846027 fixing f16638a725925fce791fe40d85f5aca28b514dad --- diff --git a/modules/documentCanvas/canvasManager.js b/modules/documentCanvas/canvasManager.js index dbf414b..afc3363 100644 --- a/modules/documentCanvas/canvasManager.js +++ b/modules/documentCanvas/canvasManager.js @@ -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') {