UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

14 lines (13 loc) 564 B
import { Schema, Plugin, PluginKey } from '../../prosemirror'; export declare type StateChangeHandler = (anchorPos: number, headPos: number) => any; export declare class ReactNodeViewState { private changeHandlers; constructor(); subscribe(cb: StateChangeHandler): void; unsubscribe(cb: StateChangeHandler): void; notifyNewSelection(anchorPos: number, headPos: number): void; } export declare const stateKey: PluginKey; export declare const plugin: Plugin; declare const plugins: (schema: Schema<any, any>) => Plugin[]; export default plugins;