@atlaskit/editor-plugin-selection
Version:
Selection plugin for @atlaskit/editor-core
7 lines (6 loc) • 579 B
TypeScript
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
export declare const inlineNodeInRangeSelectionClassName = "ak-editor-inline-node-in-range-selection";
/** Inline atom nodes that show a selection treatment instead of the native text highlight. */
export declare const inlineNodeRangeSelectionNodeTypeNames: readonly ['inlineCard', 'mention', 'status', 'date', 'emoji'];
export declare const createInlineNodeRangeSelectionPlugin: (nodeTypeNames?: readonly string[]) => SafePlugin<DecorationSet>;