createDocument

Creates an Editor document from HTML content.

Parameters

schema Schema<any>

The schema object of the Editor.

html string

The HTML content.

parseOptions? ParseOptions<any>

The HTML parsing options. Defaults to { preserveWhitespace: 'full' }.

Returns

Node<any> - The document object of the Editor.

 /