UNPKG

@atlaskit/editor-plugin-selection

Version:

Selection plugin for @atlaskit/editor-core

10 lines (9 loc) 738 B
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection'; import type { Command, EditorCommandWithMetadata } from '@atlaskit/editor-common/types'; import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model'; import { Selection } from '@atlaskit/editor-prosemirror/state'; export declare const selectNearNode: EditorCommandWithMetadata; export declare const setSelectionRelativeToNode: (selectionRelativeToNode?: RelativeSelectionPos, selection?: Selection | null) => Command; export declare const arrowRight: Command; export declare const arrowLeft: Command; export declare const setSelectionInsideAtNodeEnd: (selectionRelativeToNode: RelativeSelectionPos, node: PmNode, from: number, to: number) => Command;