mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
Add Tables Keyboard Selection Support (#1471)
* Add Keyboard Selection Support * Fix tests
This commit is contained in:

committed by
acywatson

parent
63f71f096e
commit
6761f5dde2
@ -65,6 +65,7 @@ export default function TablePlugin(): React$Node {
|
||||
} else {
|
||||
focusNode.append(tableNode);
|
||||
}
|
||||
tableNode.insertBefore($createParagraphNode());
|
||||
} else {
|
||||
const topLevelNode = focusNode.getTopLevelElementOrThrow();
|
||||
topLevelNode.insertAfter(tableNode);
|
||||
|
Reference in New Issue
Block a user