UNPKG

@atlaskit/editor-plugin-placeholder-text

Version:

placeholder text plugin for @atlaskit/editor-core

18 lines (17 loc) 666 B
import type { getPosHandler } from '@atlaskit/editor-common/react-node-view'; import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model'; import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view'; type PmMutationRecord = MutationRecord | { target: Node; type: 'selection'; }; export declare class PlaceholderTextNodeView implements NodeView { private readonly node; private readonly view; private readonly getPos; readonly dom: Node; constructor(node: PMNode, view: EditorView, getPos: getPosHandler); stopEvent(e: Event): boolean; ignoreMutation(record: PmMutationRecord): boolean; } export {};