From 1587895c3b5163157002c6259eefe6943554fd1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 8 Aug 2013 13:08:41 +0200 Subject: [PATCH 1/1] hack --- modules/documentCanvas/canvas/canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/documentCanvas/canvas/canvas.js b/modules/documentCanvas/canvas/canvas.js index 48e4abf..8472688 100644 --- a/modules/documentCanvas/canvas/canvas.js +++ b/modules/documentCanvas/canvas/canvas.js @@ -245,7 +245,7 @@ $.extend(Canvas.prototype, { var parent = element.parent(), grandParent = parent ? parent.parent() : null, goto; - if(parent.children().length === 1) { + if(parent.children().length === 1 && parent.children()[0].sameNode(element)) { if(grandParent && grandParent.children().length === 1) { goto = grandParent.append({text: ''}); } else { -- 2.20.1