X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5b4122c6f8f4fef93526a0029aa6a4ba5f329cfa..36de4837650d53704c67a9f23a4d68b1287b03ec:/src/smartxml/smartxml.js

diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js
index 80ee43c..9a3ba26 100644
--- a/src/smartxml/smartxml.js
+++ b/src/smartxml/smartxml.js
@@ -107,6 +107,7 @@ $.extend(ElementNode.prototype, DocumentNode.prototype, {
         });
         node.setData(this.getData());
 
+        this._$.replaceWith(node._$);
         this._setNativeNode(node._$[0]);
         this.triggerChangeEvent('nodeTagChange', {oldTagName: oldTagName, newTagName: this.getTagName()});
     },