CKEDITOR.htmlParser.cdata
A lightweight representation of HTML CDATA.
Filtering
Properties
-
type : Number
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
The CDATA value.
Methods
-
constructor( value ) → cdata
Creates a cdata class instance.
Parameters
value : String
The CDATA section value.
Returns
Overrides: CKEDITOR.htmlParser.node.constructor -
getAscendant( condition ) → element
since 4.3
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
since 4.3
Gets this node's index in its parent's children array.
Returns
Number
-
insertAfter( node )
since 4.1
Insert this node after given one.
Parameters
node : node
The node that will precede this element.
-
insertBefore( node )
since 4.1
Insert this node before given one.
Parameters
node : node
The node that will follow this element.
-
remove()
since 4.1
Remove this node from a tree.
-
replaceWith( node )
since 4.1
Replace this node with given one.
Parameters
node : node
The node that will replace this one.
-
writeHtml( writer )
Writes the CDATA with no special manipulations.
Parameters
writer : basicWriter
The writer to which write the HTML.