@atlaskit/editor-plugin-table
Version:
Table plugin for the @atlaskit/editor
19 lines (18 loc) • 725 B
TypeScript
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
export default abstract class TableNodeView<T extends HTMLElement> implements NodeView {
protected node: PmNode;
protected readonly view: EditorView;
protected readonly getPos: () => number | undefined;
protected readonly eventDispatcher: EventDispatcher;
/**
* @constructor
*/
constructor(node: PmNode, view: EditorView, getPos: () => number | undefined, eventDispatcher: EventDispatcher);
/**
* Variables
*/
dom: T;
contentDOM: T;
}