CKEditor 4 Documentation

CKEDITOR.dom.documentFragment

Files

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.

Defined By

Properties

CKEDITOR.dom.documentFragment
view source
: Numberreadonly
The node type. ...

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

Defaults to: CKEDITOR.NODE_DOCUMENT_FRAGMENT

Defined By

Methods

CKEDITOR.dom.documentFragment
view source
new( [nodeOrDoc] ) : CKEDITOR.dom.documentFragment
Creates a document fragment class instance. ...

Creates a document fragment class instance.

Parameters

Returns

CKEDITOR.dom.documentFragment
view source
( ) : String
Gets HTML of this document fragment's children. ...

Gets HTML of this document fragment's children.

Available since: 4.5

Returns

  • String

    The HTML of this document fragment's children.

CKEDITOR.dom.documentFragment
view source
( node )
Inserts the document fragment content after the specified node. ...

Inserts the document fragment content after the specified node.

Parameters