revert stupid change
authorJan Szejko <janek37@gmail.com>
Wed, 1 Mar 2017 12:52:05 +0000 (13:52 +0100)
committerJan Szejko <janek37@gmail.com>
Wed, 1 Mar 2017 12:52:05 +0000 (13:52 +0100)
src/editor/plugins/core/core.js

index 9a10066..661c738 100644 (file)
@@ -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