Darginec05 / Yoopta-Editor

Build Notion-like, Craft-like, Coda-like, Medium-like editors with Yoopta
https://yoopta.dev/
MIT License
1.44k stars 111 forks source link

[BUG] Text selection color disappears or dislocates #371

Open GaganpreetKaurKalsi opened 2 weeks ago

GaganpreetKaurKalsi commented 2 weeks ago

Has this bug been raised before?

Description

Both scenarios I have recorded in a video here

Screenshots

No response

Do you want to work on this issue?

No

Darginec05 commented 2 weeks ago

Thanks for reporting issue :) This is common issue with rich-text editors. Browser lost selection when you focus on other element.

So, it's time to create fake selection for such cases

GaganpreetKaurKalsi commented 2 weeks ago

Cool, I'll give some time to the problem statement and see if I can come up with a solution. Still need to go through the code files :)