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/04b969b68c922970339a783e865bb1f9c593946c?ds=sidebyside revert stupid change (cherry picked from commit a5b0d59) --- diff --git a/src/editor/plugins/core/core.js b/src/editor/plugins/core/core.js index eda3c72..c2c5ffa 100644 --- a/src/editor/plugins/core/core.js +++ b/src/editor/plugins/core/core.js @@ -192,7 +192,7 @@ plugin.documentExtension.documentNode.transformations = { node: ret, offset: ret.getText().length - len }; - } else { + } else if(!toret) { toret = { node: ret.getFirstTextNode(), offset: 0