CKEDITOR.htmlParser.text
A lightweight representation of HTML text.
Filtering
Properties
-
The node type. This is a constant value set to CKEDITOR.NODE_TEXT.
Defaults to
CKEDITOR.NODE_TEXT value : StringCKEDITOR.htmlParser.text#valueThe text value.
-
Defaults to
{isBlockLike: false}
Methods
-
-
Filter this text node with given filter.
Parameters
filter : filter
Returns
BooleanMethod returns
falsewhen this text node has been removed. This is an information for CKEDITOR.htmlParser.element.filterChildren that it has to repeat filter on current position in parent's children array.
-
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.
writeHtml( writer, [ filter ] )CKEDITOR.htmlParser.text#writeHtmlWrites the HTML representation of this text to a {CKEDITOR.htmlParser.basicWriter}.
Parameters
writer : basicWriterThe writer to which write the HTML.
[ filter ] : filterThe filter to be applied to this node. Note: it's unsafe to filter offline (not appended) node.