@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
25 lines (24 loc) • 764 B
TypeScript
import type { IntlShape } from 'react-intl-next';
import type { MarkType, NodeType } from '@atlaskit/editor-prosemirror/model';
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
import { Command } from './command';
export type MarkOptions = {
state: EditorState;
formatMessage: IntlShape['formatMessage'];
nodeType?: undefined;
markType: MarkType;
onMouseEnter?: undefined;
onMouseLeave?: undefined;
onFocus?: Command;
onBlur?: Command;
};
export type NodeOptions = {
state: EditorState;
formatMessage: IntlShape['formatMessage'];
nodeType: NodeType | Array<NodeType>;
markType?: undefined;
onMouseEnter?: Command;
onMouseLeave?: Command;
onFocus?: Command;
onBlur?: Command;
};