Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netzo/deps/@tiptap/react.ts>createDocument

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function createDocument
import { createDocument } from "https://deno.land/x/netzo@0.5.106/deps/@tiptap/react.ts";

Create a new Prosemirror document node from content.

Parameters

content: Content

The JSON or HTML content to create the document from

schema: Schema

The Prosemirror schema to use for the document

optional
parseOptions: ParseOptions

Options for the parser

Returns

The created Prosemirror document node