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

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

Tries to get a node or mark type by its name.

Parameters

name: string

The name of the node or mark type

schema: Schema

The Prosemiror schema to search in

Returns

The node or mark type, or null if it doesn't exist