Focusing the editor with a click? #2744
Unanswered
bodydisplaynone
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
Uh oh!
There was an error while loading. Please reload this page.
-
At this point, I'm out of ideas. I want to do a very basic test where I focus/hover/click the editor so I can write in it with cypress.
When I use the mouse manually, as a human, it works as expected. When I call '.codex-editor' (or any other selector) with click, mouseenter or whatever, nothing happens and the editor is not focused.
Any idea how can I simulate an actual event (cypress clicks in, writes hello world) without writing excessive code like adding and selecting blocks? I also want to avoid adding any extra code to onReady. The editor works fine as it is when manipulated by a user, I just want to run a simple test on it.
Beta Was this translation helpful? Give feedback.
All reactions