medium-proeditor
Version:
A powerful & customizable Medium-style rich text editor
20 lines • 548 B
TypeScript
import type { MarkType, ResolvedPos } from 'prosemirror-model';
import type { Range } from '../types';
/**
* Get the range of a mark at a resolved position.
*/
export declare function getMarkRange(
/**
* The position to get the mark range for.
*/
$pos: ResolvedPos,
/**
* The mark type to get the range for.
*/
type: MarkType,
/**
* The attributes to match against.
* If not provided, only the first mark at the position will be matched.
*/
attributes?: Record<string, any>): Range | undefined;
//# sourceMappingURL=getMarkRange.d.ts.map