revert stupid change
authorJan Szejko <janek37@gmail.com>
Wed, 1 Mar 2017 12:52:05 +0000 (13:52 +0100)
committerJan Szejko <janek37@gmail.com>
Tue, 27 Mar 2018 15:03:30 +0000 (17:03 +0200)
(cherry picked from commit a5b0d59)

src/editor/plugins/core/core.js

index eda3c72..c2c5ffa 100644 (file)
@@ -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