UNPKG

@atlaskit/editor-plugin-media

Version:

Media plugin for @atlaskit/editor-core

10 lines (9 loc) 845 B
import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics'; import type { Command, CommandDispatch } from '@atlaskit/editor-common/types'; import type { EditorState } from '@atlaskit/editor-prosemirror/state'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; export declare const showLinkingToolbar: Command; export declare const showLinkingToolbarWithMediaTypeCheck: Command; export declare const hideLinkingToolbar: (state: EditorState, dispatch?: CommandDispatch, view?: EditorView, focusFloatingToolbar?: boolean) => void; export declare const unlink: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command; export declare const setUrlToMedia: (url: string, inputMethod: INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;