Documentation
Element
is
element | Node Element Dom | |
type | String |
Returns: Boolean
Checks if the element is an inline.
var is = this.app.element.is(el, 'inline');
Checks if the element is a block.
var is = this.app.element.is(el, 'block');
Checks if the element is an inline or a block (not a text node).
var is = this.app.element.is(el, 'element');
isEmpty
el | Node Element Dom |
Returns: Boolean
Checks if the node or element has empty content.
var is = this.app.element.isEmpty(el);
cloneAttrs
elFrom | Node Element Dom | |
elTo | Node Element Dom |
Returns: Node
Clones the attributes of one element to another. Return the element to which the attributes were cloned.
var elTo = this.app.element.cloneAttrs(elFrom, elTo);
replaceToTag
el | Node Element Dom | |
tag | String |
Returns: Object
Replaces the tag of passed element to the specified one with cloning all attributes. Returns the wrapped Dom object.
var $span = this.element.replaceToTag(el, 'span');
dkjgvo65776inru43654