Save Highlights without saving the whole EditorState #6249
Unanswered
patricktrp
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm curerntly building a highlighting feature with Lexical. I render a large amount of text on a page and the user can highlight this text. Now I want to store the highlights in a database but without storing a new full editorState for each user. Im currently thinking of a Workflow like this later:
Get Text to render from API -> Translate it to Lexical State for rendering-> Get Comments for User from API -> "merge" Comments into existing state
I dont know if this is the correct way, if not please feel free to correct me. I'm stuck with storing the Highlights because i dont know what i should store to be able to later merge them back together.
Im thankful for any help!
Beta Was this translation helpful? Give feedback.
All reactions