return;
this.canvas = canvas;
this.$element = $(htmlElement);
-
- this.wlxmlTag = this.$element.attr('wlxml-tag');
}
$.extend(DocumentElement.prototype, {
if(prefix.length > 0)
this.setText(prefix);
else
- this.remove();
+ this.detach();
- var newElement = DocumentNodeElement.create({tag: parentElement.wlxmlTag, klass: parentElement.wlxmlClass}, myCanvas);
+ var newElement = DocumentNodeElement.create({tag: parentElement.getWlxmlTag(), klass: parentElement.getWlxmlClass()}, myCanvas);
parentElement.after(newElement);
if(suffix.length > 0)