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

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

Gets the text between two positions in a Prosemirror node and serializes it using the given text serializers and block separator (see getText)

Parameters

startNode: ProseMirrorNode

The Prosemirror node to start from

range: Range

The range of the text to get

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

Options for the text serializer & block separator

Returns

string

The text between the two positions