UNPKG

@atlaskit/editor-plugin-rule

Version:

Rule plugin for @atlaskit/editor-core

14 lines (13 loc) • 483 B
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model'; import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view'; export declare class RuleNodeView implements NodeView { dom: Node; private node; private readonly view; private readonly handleMousedown; private readonly unbindMousedown; constructor(node: PMNode, view: EditorView); update(node: PMNode): boolean; ignoreMutation(): boolean; destroy(): void; }