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) {
},
create: function(wlxmlTextNode, canvas) {
- return this.fromHTMLElement(this.createDOM(wlxmlTextNode)[0]);
+ return this.fromHTMLElement(this.createDOM(wlxmlTextNode)[0], canvas);
},
fromHTMLElement: function(htmlElement, canvas) {