From 85b90b418f5ae3731455f3bdf7f65e7f17406c72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 6 Aug 2014 09:45:31 +0200 Subject: [PATCH] editor: canvas fix --- src/editor/plugins/core/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/plugins/core/core.js b/src/editor/plugins/core/core.js index 6156b89..76be9e8 100644 --- a/src/editor/plugins/core/core.js +++ b/src/editor/plugins/core/core.js @@ -185,7 +185,7 @@ plugin.documentExtension.documentNode.transformations = { return toMerge.is({tagName: 'div', 'klass': 'p'}) || (toMerge.is({tagName: 'div'}) && toMerge.getClass() === ''); }, run: function() { - if(prev && prev.is('p') || prev.is({tagName: 'header'})) { + if(prev && (prev.is('p') || prev.is({tagName: 'header'}))) { return merge(toMerge, prev); } if(prev && prev.is('list')) { -- 2.20.1