-
Hi, I started looking at using Lexical for SolidJs on the impetus that the vanilla approach could just work. I was half right, at least, as stated here: facebook/lexical#5836 Now I am really curious as to why some typing works, but some update events are dropped, like in that some keys work while others do not. E.g that backspace always triggers the update listener, and enter just removes the trailing text without adding a new text node. Any insights to why lexical vanilla, without going through any bindings, work only partially (or why it works at all)? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I'm not sure if you're asking about the update listener (mentioned in your link) or the editor not behaving as it should. From your comment in the linked discussion:
it seems you're using solid-js, but using lexical without the wrapper provided by this library. You really shouldn't have the editor Element being recreated if you're using solid correctly. Here's some ideas though:
|
Beta Was this translation helpful? Give feedback.
-
BTW, given that your request is about why lexical alone doesn't work, please edit the title to something more descriptive. As written, I initially thought you were asking why this library exists. |
Beta Was this translation helpful? Give feedback.
-
FYI, I'm attaching this solid app as a web-component, and that seems to have issues, ref bug facebook/lexical#2119. Applying the patch suggested here facebook/lexical#2119 (comment) seems to fix the issues. Maybe relevant for others comming here. |
Beta Was this translation helpful? Give feedback.
FYI, I'm attaching this solid app as a web-component, and that seems to have issues, ref bug facebook/lexical#2119. Applying the patch suggested here facebook/lexical#2119 (comment) seems to fix the issues.
Maybe relevant for others comming here.