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>createNodeFromContent

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

Takes a JSON or HTML content and creates a Prosemirror node or fragment from it.

Parameters

content: Content

The JSON or HTML content to create the node from

schema: Schema

The Prosemirror schema to use for the node

Options for the parser

Returns

The created Prosemirror node or fragment