From: Jan Szejko Date: Wed, 1 Mar 2017 12:52:05 +0000 (+0100) Subject: revert stupid change X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/a5b0d5944c60f5335668c2873f44d9885e745ba0?ds=sidebyside revert stupid change --- diff --git a/src/editor/plugins/core/core.js b/src/editor/plugins/core/core.js index 9a10066..661c738 100644 --- a/src/editor/plugins/core/core.js +++ b/src/editor/plugins/core/core.js @@ -194,7 +194,7 @@ plugin.documentExtension.documentNode.transformations = { node: ret, offset: ret.getText().length - len }; - } else { + } else if(!toret) { toret = { node: ret.getFirstTextNode(), offset: 0