From: Aleksander Ɓukasz Date: Wed, 6 Aug 2014 07:45:31 +0000 (+0200) Subject: editor: canvas fix X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/85b90b418f5ae3731455f3bdf7f65e7f17406c72?ds=sidebyside editor: canvas fix --- 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')) {