CKEditor 4 Documentation

CKEDITOR.htmlParser.text

Hierarchy

CKEDITOR.htmlParser.node
CKEDITOR.htmlParser.text

Files

A lightweight representation of HTML text.

Defined By

Properties

CKEDITOR.htmlParser.text
view source
: Objectprivate
...

Defaults to: {isBlockLike: false}

CKEDITOR.htmlParser.text
view source
: Numberreadonly
The node type. ...

The node type. This is a constant value set to CKEDITOR.NODE_TEXT.

Defaults to: CKEDITOR.NODE_TEXT

CKEDITOR.htmlParser.text
view source
: String

The text value.

The text value.

Defined By

Methods

Creates a text class instance. ...

Creates a text class instance.

Parameters

  • value : String

    The text node value.

Returns

Overrides: CKEDITOR.htmlParser.node.constructor

CKEDITOR.htmlParser.text
view source
( filter ) : Boolean
Filter this text node with given filter. ...

Filter this text node with given filter.

Available since: 4.1

Parameters

Returns

  • Boolean

    Method returns false when 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 ...

Gets the closest ancestor element of this element which satisfies given condition

Available since: 4.3

Parameters

  • condition : String/Object/Function

    Name of an ancestor, hash of names or validator function.

Returns

Gets this node's index in its parent's children array. ...

Gets this node's index in its parent's children array.

Available since: 4.3

Returns

  • Number
Insert this node after given one. ...

Insert this node after given one.

Available since: 4.1

Parameters

Insert this node before given one. ...

Insert this node before given one.

Available since: 4.1

Parameters

Remove this node from a tree. ...

Remove this node from a tree.

Available since: 4.1

Replace this node with given one. ...

Replace this node with given one.

Available since: 4.1

Parameters

Wraps this element with given wrapper. ...

Wraps this element with given wrapper.

Available since: 4.3

Parameters

Returns

CKEDITOR.htmlParser.text
view source
( writer, [filter] )
Writes the HTML representation of this text to a {CKEDITOR.htmlParser.basicWriter}. ...

Writes the HTML representation of this text to a {CKEDITOR.htmlParser.basicWriter}.

Parameters