@atlaskit/editor-plugin-hyperlink
Version:
Hyperlink plugin for @atlaskit/editor-core
15 lines (14 loc) • 625 B
TypeScript
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
export type HyperlinkToolbarItemsState = {
/**
* If you are mounting your own items to the hyperlink toolbar you may decide
* you want to replace the hyperlink analytics with your own
* Defaults to false.
*/
skipAnalytics?: boolean;
};
export declare const toolbarKey: PluginKey<HyperlinkToolbarItemsState | undefined>;
export declare const toolbarButtonsPlugin: (initialState?: {
skipAnalytics: boolean;
}) => SafePlugin<HyperlinkToolbarItemsState | undefined>;