+ },
+ wrapWithNodeElement: function(wlxmlNode) {
+ if(wlxmlNode.start && wlxmlNode.end) {
+ return this.canvas.wrapText({
+ inside: this.parent(),
+ textNodeIdx: this.parent().childIndex(this),
+ offsetStart: wlxmlNode.start,
+ offsetEnd: wlxmlNode.end,
+ _with: {tag: wlxmlNode.tag, klass: wlxmlNode.klass}
+ });
+ } else {
+ return DocumentElement.prototype.wrapWithNodeElement.call(this, wlxmlNode);
+ }