@atlaskit/editor-plugin-selection
Version:
Selection plugin for @atlaskit/editor-core
11 lines (10 loc) • 820 B
TypeScript
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
import type { Command } from '@atlaskit/editor-common/types/command';
import type { EditorCommandWithMetadata } from '@atlaskit/editor-common/types/editor-command';
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;