From 20020035edf7edeb436a010dc55555c7a7846027 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 11 Jul 2013 16:22:08 +0200 Subject: [PATCH 1/1] fixing f16638a725925fce791fe40d85f5aca28b514dad --- modules/documentCanvas/canvasManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') { -- 2.20.1