How to set already stored html programmatically without using autofocus plugin or manual focus #3988
Unanswered
TanayWagh01
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
-
How do I set the already stored HTML at initial mount without using AutoFocus Plugin?
I want to set the Lexical Editor state ( using already stored HTML ) programatically by clicking on a button. The issue I am facing is with setting this initial value. Unless I focus on editor or use AutoFocus plugin, the Editor State doesn't get updated.
If I use AutoFocus plugin, the webpage automatically scrolls down to RichText editor and gets focused which is creating bad user experience.
How do I set initial value in above case without using AutoFocus Plugin?
Beta Was this translation helpful? Give feedback.
All reactions