createNodeFromContent
@blockslides/core / createNodeFromContent
Function: createNodeFromContent()
createNodeFromContent(
content,schema,options?):Node|Fragment
Defined in: blockslides/packages/core/src/helpers/createNodeFromContent.ts:20
Takes a JSON or HTML content and creates a Prosemirror node or fragment from it.
Parameters
content
The JSON or HTML content to create the node from
Content | Node | Fragment
schema
Schema
The Prosemirror schema to use for the node
options?
Options for the parser
Returns
Node | Fragment
The created Prosemirror node or fragment