From: Aleksander Ɓukasz Date: Thu, 8 Aug 2013 11:08:41 +0000 (+0200) Subject: hack X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/1587895c3b5163157002c6259eefe6943554fd1e?ds=inline;hp=b7ff51d1e49c089b204d837a6ee5524eefb8d175 hack --- 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 {