integration wip: sourceEditor module stops keeping its template in the hosting page...
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / documentElement.js
index a0da233..e553336 100644 (file)
@@ -29,10 +29,6 @@ $.extend(DocumentElement, {
         return elementTypeFromWlxmlNode(node).create(node, canvas);
     },
 
         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) {
     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) {
     },
 
     create: function(wlxmlTextNode, canvas) {
-        return this.fromHTMLElement(this.createDOM(wlxmlTextNode)[0]);
+        return this.fromHTMLElement(this.createDOM(wlxmlTextNode)[0], canvas);
     },
 
     fromHTMLElement: function(htmlElement, canvas) {
     },
 
     fromHTMLElement: function(htmlElement, canvas) {