From: Aleksander Ɓukasz Date: Thu, 7 Aug 2014 14:17:25 +0000 (+0200) Subject: smartxml: TextNode.split indicates which of the two return nodes is actually a new one X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/01d1e8189bc059336dc51d80815823f91cbb24a6?hp=b130359b2adfef17da7cc477779a4b98cecadd49 smartxml: TextNode.split indicates which of the two return nodes is actually a new one --- diff --git a/src/smartxml/core.js b/src/smartxml/core.js index 6329491..b60bc2e 100644 --- a/src/smartxml/core.js +++ b/src/smartxml/core.js @@ -359,7 +359,7 @@ var textNodeTransformations = { newElement.prepend({text: suffix}); } - return {first: parentElement, second: newElement}; + return {first: parentElement, second: newElement, created: newElement}; }, divideWithElementNode: function(node, params) {