UNPKG

medium-proeditor

Version:

A powerful & customizable Medium-style rich text editor

16 lines 790 B
import type { Fragment, Node as ProseMirrorNode, ParseOptions, Schema } from 'prosemirror-model'; import type { Content } from '../types'; /** * Create a new Prosemirror document node from content. * @param content The JSON or HTML content to create the document from * @param schema The Prosemirror schema to use for the document * @param parseOptions Options for the parser * @returns The created Prosemirror document node * * Source: * https://github.com/ueberdosis/tiptap/blob/develop/packages/core/src/helpers/createDocument.ts */ export declare function createDocument(content: Content | ProseMirrorNode | Fragment, schema: Schema, parseOptions?: ParseOptions, options?: { errorOnInvalidContent?: boolean; }): ProseMirrorNode; //# sourceMappingURL=createDocument.d.ts.map