@umbraco-cms/backoffice
    Preparing search index...

    Function createDocument

    • Create a new Prosemirror document node from content.

      Parameters

      • content: Node | Content | Fragment

        The JSON or HTML content to create the document from

      • schema: Schema

        The Prosemirror schema to use for the document

      • OptionalparseOptions: ParseOptions

        Options for the parser

      • Optionaloptions: { errorOnInvalidContent?: boolean }

      Returns Node

      The created Prosemirror document node