X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5625717737822065383ef29c6b5709e9984c3508..9156bcda05de78865d7f2ef202824dd2a1a03ea1:/src/smartxml/smartxml.js diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 56e78af..91dd8bb 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -154,6 +154,11 @@ $.extend(ElementNode.prototype, { this._$.append(node.nativeNode); }, + prepend: function(node) { + node = node instanceof DocumentNode ? node : this.document.createElementNode(node); + this._$.prepend(node.nativeNode); + }, + unwrapContent: function() { var parent = this.parent(); if(!parent) {