UNPKG

@atlaskit/editor-plugin-media

Version:

Media plugin for @atlaskit/editor-core

10 lines (9 loc) 541 B
import type { BorderMarkAttributes } from '@atlaskit/adf-schema'; import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model'; import type { EditorState } from '@atlaskit/editor-prosemirror/state'; export declare const currentMediaNodeWithPos: (editorState: EditorState) => { node: PMNode; pos: number; } | undefined; export declare const currentMediaNode: (editorState: EditorState) => PMNode | undefined; export declare const currentMediaNodeBorderMark: (editorState: EditorState) => BorderMarkAttributes | undefined;