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

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

Gets the text of a Prosemirror node

Examples

Example 1

const text = getText(node, { blockSeparator: '\n' })

Parameters

The Prosemirror node

optional
options: { blockSeparator?: string; textSerializers?: Record<string, TextSerializer>; }

Options for the text serializer & block separator

Returns

string

The text of the node