UNPKG

medium-proeditor

Version:

A powerful & customizable Medium-style rich text editor

15 lines 725 B
import type { Node as ProseMirrorNode } from 'prosemirror-model'; import type { Range, TextSerializer } from '../types'; /** * Gets the text between two positions in a Prosemirror node * and serializes it using the given text serializers and block separator (see getText) * @param startNode The Prosemirror node to start from * @param range The range of the text to get * @param options Options for the text serializer & block separator * @returns The text between the two positions */ export declare function getTextBetween(startNode: ProseMirrorNode, range: Range, options?: { blockSeparator?: string; textSerializers?: Record<string, TextSerializer>; }): string; //# sourceMappingURL=getTextBetween.d.ts.map