CKEditor 4 Documentation

CKEDITOR.htmlParser.comment

Hierarchy

CKEDITOR.htmlParser.node
CKEDITOR.htmlParser.comment

Files

A lightweight representation of an HTML comment.

Defined By

Properties

CKEDITOR.htmlParser.comment
view source
: Objectprivate
...

Defaults to: {isBlockLike: false}

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

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

Defaults to: CKEDITOR.NODE_COMMENT

CKEDITOR.htmlParser.comment
view source
: String

The comment text.

The comment text.

Defined By

Methods

Creates a comment class instance. ...

Creates a comment class instance.

Parameters

  • value : String

    The comment text value.

Returns

Overrides: CKEDITOR.htmlParser.node.constructor

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

Filter this comment with given filter.

Available since: 4.1

Parameters

Returns

  • Boolean

    Method returns false when this comment has been removed or replaced with other node. 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.comment
view source
( writer, [filter] )
Writes the HTML representation of this comment to a CKEDITOR.htmlWriter. ...

Writes the HTML representation of this comment to a CKEDITOR.htmlWriter.

Parameters