You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if setting readOnly still allowed changes to selection, or if there was another option to allow modifying only the selection but not the text.
This is achievable most easily (though not safely if you're saving changes) in the interim by setting all of the elements in the editor to use the following CSS, and setting readOnly to false;
Huh I never knew there were settings besides true.
I forget why exactly this was an issue. One would assume selection would still be available even if it was readOnly, right? Is readOnly set via contentEditable="false" or some other method? Is there something Slate is doing that disables selection?
For all my time working with contentEditables, I've never really dove that deep into the finer points.
I believe that this may be fixed by #3093, which has changed a lot of the logic in Slate and slate-react especially. I'm going to close this out, but as always, feel free to open a new issue if it persists for you. Thanks for understanding.
It would be great if setting
readOnly
still allowed changes to selection, or if there was another option to allow modifying only the selection but not the text.This is achievable most easily (though not safely if you're saving changes) in the interim by setting all of the elements in the editor to use the following CSS, and setting
readOnly
to false;The text was updated successfully, but these errors were encountered: