UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

13 lines (12 loc) 732 B
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics'; 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'; import TableNodeView from './TableNodeViewBase'; export default class TableCell extends TableNodeView<HTMLElement> implements NodeView { private delayHandle; constructor(node: PMNode, view: EditorView, getPos: () => number | undefined, eventDispatcher: EventDispatcher, editorAnalyticsAPI: EditorAnalyticsAPI | undefined); destroy: () => void; update(node: PMNode): boolean; private updateNodeView; }