createDocument
@blockslides/core / createDocument
Function: createDocument()
createDocument(
content,schema,parseOptions,options):Node
Defined in: blockslides/packages/core/src/helpers/createDocument.ts:13
Create a new Prosemirror document node from content.
Parameters
content
The JSON or HTML content to create the document from
Content | Node | Fragment
schema
Schema
The Prosemirror schema to use for the document
parseOptions
ParseOptions = {}
Options for the parser
options
errorOnInvalidContent?
boolean
Returns
Node
The created Prosemirror document node