-
|
I've looked this up countless times on Google and everywhere else, and it seems ridiculously straight forward. For some reason, I cannot get a lexical table to insert. My website is a standalone app, not built in React. I use a Rollup bundle script to bundle up Lexical packages into a single JS file that runs on my site. Here is what I have: src/main.js: Web App: When I add some text to the editor and press the button, this is the console.log result, which shows no table node: Is there something I'm missing here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Yes, the table plugin needs to be registered in order for the INSERT_TABLE_COMMAND to do anything. https://lexical.dev/docs/api/modules/lexical_table#registertableplugin |
Beta Was this translation helpful? Give feedback.
Yes, the table plugin needs to be registered in order for the INSERT_TABLE_COMMAND to do anything. https://lexical.dev/docs/api/modules/lexical_table#registertableplugin