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