CKEDITOR.dom.documentFragment
DocumentFragment is a "lightweight" or "minimal" Document object. It is commonly used to extract a portion of a document's tree or to create a new fragment of a document. Various operations may take document fragment objects as arguments and result in all the child nodes of the document fragment being moved to the child list of this node.
Filtering
Properties
-
type : Number
readonly
The node type. This is a constant value set to CKEDITOR.NODE_DOCUMENT_FRAGMENT.
Defaults to
CKEDITOR.NODE_DOCUMENT_FRAGMENT
Methods
-
constructor( [ nodeOrDoc ] ) → documentFragment
Creates a document fragment class instance.
-
getHtml() → String
since 4.5
Gets HTML of this document fragment's children.
Returns
String
The HTML of this document fragment's children.
-
insertAfterNode( node )
Inserts the document fragment content after the specified node.
Parameters
node : node