fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
smartxml: setting text on text node
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.js
diff --git
a/src/smartxml/smartxml.js
b/src/smartxml/smartxml.js
index
b81b0f0
..
53eefed
100644
(file)
--- a/
src/smartxml/smartxml.js
+++ b/
src/smartxml/smartxml.js
@@
-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;
},