Hey, I'm wondering if it's possible to add [lexical plugins](
https://lexical.dev/docs/react/plugins) to the lexical richText editor, and if so... how?
Seems like there should be some documentation on this
I specifically want to add the [lexical table plugin](
https://lexical.dev/docs/packages/lexical-table)
Haha this plugin is a legend, something we all want but we can't seem to have
the one we need but do not deserve
๐
did you find any way to do tables in payload 2?
This dosent seem to install on payload version 2.0.0
is it a planed feature?
or is there another tables plugin
Nope, we scrapped the feature for now. Hope the devs add a table feature soon tho
Yea, just doing rows and columns arrays for now
If you're implementing that, could you please upload the code for the converter somewhere? Would love more insight into how the converter feature works
im converting the json in my frontend, do you wanna see that code?
yes please! ๐
I'll just tag you in case you missed my answer ๐
Oh my bad, i did miss it.
We just did a normal text area
the rows and colums thing was to slow
let table: [][] = node.fields.content.split("\n").map((row: string) => {
return row.split("|").map((cell: string) => {
return cell;
});
});ahh, okey
so that's using a text area instead of a richText field with blocks then?
yea
it was to slow to use rows and cols blocks. So we decided to use text area till tables are supported
understandable
do you still have the code for the converter tho?
๐
i copied this one, one sec
Thanks a bunch!
Star
Discord
online
Get dedicated engineering support directly from the Payload team.