fromHTMLElement: function(htmlElement, canvas) {
return new this(htmlElement, canvas);
},
fromHTMLElement: function(htmlElement, canvas) {
return new this(htmlElement, canvas);
},
var dom = $('<div>')
.attr('document-node-element', ''),
widgetsContainer = $('<div>')
var dom = $('<div>')
.attr('document-node-element', ''),
widgetsContainer = $('<div>')
var dom = $('<div>')
.attr('document-text-element', '')
.text(wlxmlTextNode.getText() || utils.unicode.ZWS),
element = this.fromHTMLElement(dom[0], canvas);
element.data('wlxmlNode', wlxmlTextNode);
var dom = $('<div>')
.attr('document-text-element', '')
.text(wlxmlTextNode.getText() || utils.unicode.ZWS),
element = this.fromHTMLElement(dom[0], canvas);
element.data('wlxmlNode', wlxmlTextNode);
},
fromHTMLElement: function(htmlElement, canvas) {
return new this(htmlElement, canvas);
},
},
fromHTMLElement: function(htmlElement, canvas) {
return new this(htmlElement, canvas);
},
isContentContainer: function(htmlElement) {
return htmlElement.nodeType === Node.TEXT_NODE && $(htmlElement).parent().is('[document-text-element]');
}
isContentContainer: function(htmlElement) {
return htmlElement.nodeType === Node.TEXT_NODE && $(htmlElement).parent().is('[document-text-element]');
}