From a5b0d5944c60f5335668c2873f44d9885e745ba0 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 1 Mar 2017 13:52:05 +0100 Subject: [PATCH 1/1] revert stupid change --- src/editor/plugins/core/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1