CKEDITOR.htmlParser.comment
A lightweight representation of an HTML comment.
Filtering
Properties
-
The node type. This is a constant value set to CKEDITOR.NODE_COMMENT.
Defaults to
CKEDITOR.NODE_COMMENT
-
value : String
CKEDITOR.htmlParser.comment#value
The comment text.
-
Defaults to
{isBlockLike: false}
Methods
-
-
Filter this comment with given filter.
Parameters
filter : filter
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
Parameters
condition : String | Object | Function
Name of an ancestor, hash of names or validator function.
Returns
element
The closest ancestor which satisfies given condition or
null
.
-
-
Insert this node after given one.
Parameters
node : node
The node that will precede this element.
-
Insert this node before given one.
Parameters
node : node
The node that will follow this element.
-
Remove this node from a tree.
-
Replace this node with given one.
Parameters
node : node
The node that will replace this one.
-
Wraps this element with given
wrapper
.Parameters
wrapper : element
The element which will be this element's new parent.
Returns
element
Wrapper.
-
writeHtml( writer, [ filter ] )
CKEDITOR.htmlParser.comment#writeHtml
Writes the HTML representation of this comment to a CKEDITOR.htmlWriter.
Parameters
writer : basicWriter
The writer to which write the HTML.
[ filter ] : filter
The filter to be applied to this node. Note: it's unsafe to filter offline (not appended) node.