Skip to content
Discussion options

You must be logged in to vote

Lexical doesn't support it (Seems you've read the source code, so no need to explain that).
To ser/deser selection, the idea is pretty similar to what @lexical-yjs does (yjs is a state synchronization package, if you've used collaborative editor, you know that you are able to see other's cursor when editing your parts, that's what it do), so maybe you can refer to that package.
I'd recommend you to consider manage that state yourself. For example, register an update listener, whenever the selection changes, sync the state to your own state management module. When you serialize the state, just serialize your own states as well.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChunxuYang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants