smartxml: setting text on text node
[fnpeditor.git] / src / smartxml / smartxml.js
index b81b0f0..53eefed 100644 (file)
@@ -209,6 +209,10 @@ $.extend(TextNode.prototype, DocumentNode.prototype, {
         return this.nativeNode.data;
     },
 
+    setText: function(text) {
+        this.nativeNode.data = text;
+    },
+
     appendText: function(text) {
         this.nativeNode.data = this.nativeNode.data + text;
     },