@atlaskit/editor-plugin-media-insert
Version:
Media Insert plugin for @atlaskit/editor-core
10 lines (9 loc) • 499 B
TypeScript
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
export type MediaInsertPluginAction = typeof ACTION_OPEN_POPUP | typeof ACTION_CLOSE_POPUP;
export declare const ACTION_OPEN_POPUP = "OPEN_POPUP";
export declare const ACTION_CLOSE_POPUP = "CLOSE_POPUP";
export declare const showMediaInsertPopup: (tr: Transaction, mountInfo?: {
mountPoint: HTMLElement;
ref: HTMLElement;
}) => Transaction;
export declare const closeMediaInsertPicker: (tr: Transaction) => Transaction;