X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1c409979eddd9cd58c1efe2705328c91c95c592b..151e78ccc2757396286eb0be3ec3b368ba64b369:/modules/documentCanvas/canvas/canvas.js?ds=sidebyside diff --git a/modules/documentCanvas/canvas/canvas.js b/modules/documentCanvas/canvas/canvas.js index e6b8135..9506049 100644 --- a/modules/documentCanvas/canvas/canvas.js +++ b/modules/documentCanvas/canvas/canvas.js @@ -72,7 +72,7 @@ $.extend(Canvas.prototype, { doc: function() { if(this.d === null) return null; - return documentElement.wrap(this.d.get(0), this); //{wlxmlTag: this.d.prop('tagName')}; + return documentElement.DocumentNodeElement.fromHTMLElement(this.d.get(0), this); //{wlxmlTag: this.d.prop('tagName')}; }, wrapText: function(params) { @@ -117,7 +117,7 @@ $.extend(Canvas.prototype, { }, getDocumentElement: function(from) { if(from instanceof HTMLElement || from instanceof Text) { - return documentElement.wrap(from, this); + return documentElement.DocumentElement.fromHTMLElement(from, this); } }, getCursor: function() {