UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

17 lines (16 loc) 679 B
import { EditorView, Node } from '../../prosemirror'; import { Transformer } from '../../transformers'; export default class EditorActions { private editorView?; private contentTransformer?; _privateGetEditorView(): EditorView | undefined; _privateRegisterEditor(editorView: EditorView, contentTransformer?: Transformer<string>): void; _privateUnregisterEditor(): void; focus(): boolean; blur(): boolean; clear(): boolean; getValue(): Promise<string | Node | undefined>; replaceDocument(rawValue: Node | string | Object): boolean; appendText(text: string): boolean; insertFileFromDataUrl(url: string, filename: string): boolean; }