CKEDITOR.htmlParser.cdata
A lightweight representation of HTML CDATA.
Filtering
Properties
-
type : Number
CKEDITOR.htmlParser.cdata#type
readonly
CDATA has the same type as CKEDITOR.htmlParser.text This is a constant value set to CKEDITOR.NODE_TEXT.
Defaults to
CKEDITOR.NODE_TEXT
-
value : String
CKEDITOR.htmlParser.cdata#value
The CDATA value.
Methods
-
constructor() → node
CKEDITOR.htmlParser.cdata#constructor
inherited
Creates a node class instance.
Returns
-
getAscendant( condition ) → element
CKEDITOR.htmlParser.cdata#getAscendant
since 4.3.0 inherited
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
.
-
getIndex() → Number
CKEDITOR.htmlParser.cdata#getIndex
since 4.3.0 inherited
Gets this node's index in its parent's children array.
Returns
Number
-
insertAfter( node )
CKEDITOR.htmlParser.cdata#insertAfter
since 4.1.0 inherited
Insert this node after given one.
Parameters
node : node
The node that will precede this element.
-
insertBefore( node )
CKEDITOR.htmlParser.cdata#insertBefore
since 4.1.0 inherited
Insert this node before given one.
Parameters
node : node
The node that will follow this element.
-
remove()
CKEDITOR.htmlParser.cdata#remove
since 4.1.0 inherited
Remove this node from a tree.
-
replaceWith( node )
CKEDITOR.htmlParser.cdata#replaceWith
since 4.1.0 inherited
Replace this node with given one.
Parameters
node : node
The node that will replace this one.
-
Wraps this element with given
wrapper
. -
writeHtml( writer )
CKEDITOR.htmlParser.cdata#writeHtml
Writes the CDATA with no special manipulations.
Parameters
writer : basicWriter
The writer to which write the HTML.