Bug: showng selection in inactive editor #5639
Unanswered
evskorobogatij
asked this question in
Q&A
Replies: 3 comments
-
|
Maybe you should store the "lastSelection" in some pulgin of lexical? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I apply styles for imitate display selection How to cancel last action in editor? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This is a behavior that is not supported by the browser but we now provide utilities for this: #5153. This will allow you to mimic the selection as if it was selected by the browser. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I need to show selection in inactive editor
Lexical version: 0.7.6
Steps To Reproduce
How display selection in inactive editor?
Link to code example:
https://codesandbox.io/s/young-microservice-jbfn04?file=/src/plugins/ToolbarPlugin.js
The current behavior
lost selection if editor lost focus
The expected behavior
Show selection on inactive editor
Beta Was this translation helpful? Give feedback.
All reactions