You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello i'm building a forum like platofmr and i chosed lexical as text editor so far i configured everything nicely, and build a couple of custom plugins but i can't seem to find a solution for a quote plugin i'm trying to build
I used the image plugin on the playground as base idea since i saw it has a nested composer which is what i need i guess...
this is my code though i don't think it's the correct way to do it
what i think i'm failing is the fact that i have to pass a LexicalEditor payload in the post content in fact it gives me some errors when he tries to initialize the nestedComposer like he can't find the theme of undefined or something like that but now that i think about it the post i'm quoting has been serialized to html, in a previous version i tried to do it by converting a previously serialized post in html to lexical nodes and it worked but i couldnt manage to have the quote it editable ( which it's a feature i want since maybe u want to quote only parts of a post ) so i assume i need to use this LexicalNestedComposer somehow
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello i'm building a forum like platofmr and i chosed lexical as text editor so far i configured everything nicely, and build a couple of custom plugins but i can't seem to find a solution for a quote plugin i'm trying to build
I used the image plugin on the playground as base idea since i saw it has a nested composer which is what i need i guess...
this is my code though i don't think it's the correct way to do it
and this is the base decorated component
what i think i'm failing is the fact that i have to pass a LexicalEditor payload in the post content in fact it gives me some errors when he tries to initialize the nestedComposer like he can't find the theme of undefined or something like that but now that i think about it the post i'm quoting has been serialized to html, in a previous version i tried to do it by converting a previously serialized post in html to lexical nodes and it worked but i couldnt manage to have the quote it editable ( which it's a feature i want since maybe u want to quote only parts of a post ) so i assume i need to use this LexicalNestedComposer somehow
can someone give me a tip ?
Beta Was this translation helpful? Give feedback.
All reactions