Add Tables Keyboard Selection Support (#1471)

* Add Keyboard Selection Support

* Fix tests
This commit is contained in:
Tyler Bainbridge
2022-03-21 15:11:58 -04:00
committed by acywatson
parent 63f71f096e
commit 6761f5dde2
7 changed files with 351 additions and 179 deletions

View File

@ -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);