Devtools extension does not recognize editor if rendered after page load #3646
juniorbatistadev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The devtools extension seems to recognize the Lexical editor only when it's present during the page's initial load. I know extensions have limited access to the DOM and can't read modifications to the DOM after page load. However, I believe it's possible to inject a script tag. The injected script would have full access to the DOM. And would detect when the Lexical Editor is rendered.
Our specific case is a Next.js page with an auth conditional, the editor doesn't show until the user is authed. With the conditional, the extension doesn't work because the editor is not rendered until later. Without the conditional, the editor is recognized by the extension.
Any ideas or thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions