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
Describe the bug
When Watermark plugin is added to editor, no text is added to the input box and indent is changed, the text for Watermark plugin is shown for a small period of time
Hi @romanisa! I investigated this issue a little bit and not sure if it's possible to fix it with the current behavior.
To share more details:
Currently, Watermark plugin adds a watermark every time when the editor isn't focused and doesn't have any text. As RoosterJS editor component doesn't really know about existence of rich text format buttons, every time when there is no text in the editor and any rich text format button is clicked, editor looses focus and the watermark is shown (there are quite a few events are caught by onPluginEvent func during this time). The watermark is removed in a few milliseconds because the editor gains focus again which is caused by rich text format buttons onClick callbacks.
A few possible solutions that might need more discussions:
change the behaviour of the watermark and start to show it when the editor is focused but empty (quick solution)
review the events handling to handle events in more optimal and fast way (probably a big task and I'm not sure if it's even doable)
Please let me know if there is something else that I've missed
cc @JiuqingSong
Describe the bug
When Watermark plugin is added to editor, no text is added to the input box and indent is changed, the text for Watermark plugin is shown for a small period of time
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Watermark plugin text should be shown all the time
or
it's shouldn't be shown at all
Screenshots
If applicable, add screenshots to help explain your problem.
Screen.Recording.2024-02-14.at.3.39.28.PM.mov
Device Information
The text was updated successfully, but these errors were encountered: