Add Table Flow Types (#1425)

* Add Table Flow Types

* Fix flow & TS types
This commit is contained in:
Tyler Bainbridge
2022-03-08 15:12:23 -05:00
committed by acywatson
parent d383876942
commit 1b843a277a
9 changed files with 688 additions and 10 deletions

View File

@ -11,7 +11,7 @@ import type {CommandListenerEditorPriority, ElementNode} from 'lexical';
import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext';
import {
$applyCustomTableHandlers,
$applyTableHandlers,
$createTableNodeWithDimensions,
TableCellNode,
TableNode,
@ -90,7 +90,7 @@ export default function TablePlugin(): React$Node {
const tableNode = $getNodeByKey(nodeKey);
if (tableElement && tableNode) {
const removeListeners = $applyCustomTableHandlers(
const removeListeners = $applyTableHandlers(
tableNode,
tableElement,
editor,