@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
13 lines (12 loc) • 541 B
TypeScript
import type { Node } from '@atlaskit/editor-prosemirror/model';
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
import type { Predicate } from '../types';
export declare function isTextAtPos(pos: number): (props: {
tr: Transaction;
}) => boolean;
export declare function isLinkAtPos(pos: number): Predicate;
export declare const getLinkPreferencesURLFromENV: () => string;
export declare const getActiveLinkMark: (state: EditorState | Transaction) => {
node: Node;
pos: number;
} | undefined;