CKEDITOR.htmlParser.node
classsince 4.1.0
A lightweight representation of HTML node.
Filtering
Methods
constructor() → nodeCKEDITOR.htmlParser.node#constructor-
Gets the closest ancestor element of this element which satisfies given condition
Parameters
condition : String | Object | FunctionName of an ancestor, hash of names or validator function.
Returns
elementThe closest ancestor which satisfies given condition or
null.
-
-
Insert this node after given one.
Parameters
node : nodeThe node that will precede this element.
-
Insert this node before given one.
Parameters
node : nodeThe node that will follow this element.
-
Remove this node from a tree.
-
Replace this node with given one.
Parameters
node : nodeThe node that will replace this one.
-
Wraps this element with given
wrapper.Parameters
wrapper : elementThe element which will be this element's new parent.
Returns
elementWrapper.