X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5c9d3612ac44a2da2624a911c97a4aa563679fed..811645a7d810c562f38edc705affff6822ebbdc9:/src/editor/modules/documentCanvas/canvas/documentElement.js diff --git a/src/editor/modules/documentCanvas/canvas/documentElement.js b/src/editor/modules/documentCanvas/canvas/documentElement.js index a0da233..e553336 100644 --- a/src/editor/modules/documentCanvas/canvas/documentElement.js +++ b/src/editor/modules/documentCanvas/canvas/documentElement.js @@ -29,10 +29,6 @@ $.extend(DocumentElement, { return elementTypeFromWlxmlNode(node).create(node, canvas); }, - createDOM: function(wlxmlNode) { - return elementTypeFromParams(wlxmlNode).createDOM(params); - }, - fromHTMLElement: function(htmlElement, canvas) { var $element = $(htmlElement); if(htmlElement.nodeType === Node.ELEMENT_NODE && $element.attr('document-node-element') !== undefined) { @@ -353,7 +349,7 @@ $.extend(DocumentTextElement, { }, create: function(wlxmlTextNode, canvas) { - return this.fromHTMLElement(this.createDOM(wlxmlTextNode)[0]); + return this.fromHTMLElement(this.createDOM(wlxmlTextNode)[0], canvas); }, fromHTMLElement: function(htmlElement, canvas) {