X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/6b06b64b40cd570ab02227cc913a5204d9562f37..a5b0d5944c60f5335668c2873f44d9885e745ba0:/src/editor/plugins/core/core.js 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