mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
Add Table Flow Types (#1425)
* Add Table Flow Types * Fix flow & TS types
This commit is contained in:

committed by
acywatson

parent
d383876942
commit
1b843a277a
@ -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,
|
||||
|
Reference in New Issue
Block a user