X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/f1f9dfddb9e3958dcbdc47aea789c5e1448fb68c..1dbe94fac7f718912c7d7fd0a896dd38d245a3af:/src/smartxml/smartxml.js?ds=inline diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 9f060e8..cfe94f0 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -272,6 +272,13 @@ $.extend(ElementNode.prototype, { this._$.prepend(nativeNode); }), + insertAtIndex: function(nativeNode, index) { + var contents = this.contents(); + if(contents[index]) { + return contents[index].before(nativeNode); + } + }, + unwrapContent: function() { var parent = this.parent(); if(!parent) {