packages/lexical-table/README.md
@lexical/tableThis package contains the functionality for the Tables feature of Lexical.
A plugin for handling tables in Lexical.
npm install @lexical/table @lexical/react
See the react-table example for a minimal example that uses this package and the TablePlugin from @lexical/react/LexicalTablePlugin
Nested tables (tables within table cells) are not supported in the editor. The following behaviors are enforced:
Note: When pasting HTML content with nested tables, the nested content will be removed by default. Make sure to implement appropriate importDOM handling if you need to preserve this content in some form.
This approach allows you to:
Choose an approach that best fits your needs: