UNPKG

@atlaskit/editor-plugin-highlight

Version:

Highlight plugin for @atlaskit/editor-core

14 lines (13 loc) 490 B
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import { PluginKey } from '@atlaskit/editor-prosemirror/state'; export declare const highlightPluginKey: PluginKey<HighlightPluginState>; export type HighlightPluginState = { activeColor: string | null; disabled: boolean; isPaletteOpen: boolean; }; export declare enum HighlightPluginAction { CHANGE_COLOR = 0, SET_PALETTE = 1 } export declare const createPlugin: () => SafePlugin<HighlightPluginState>;