Hello,
I was looking at the demo (https://blazor.syncfusion.com/demos/rich-text-editor/overview?theme=material3 ) and was trying to apply some formating to the text. I was typing some text, I pressed the 'Bold' button and I returned to the position were I was before. The editor area has lost focus, (that it shouldn't be happen) and surprisly the button returned to its original state and the text didn't chanhe to bold!! Same thing happens on this editor were I'm writting right now, I press the "bold" but the text remains unchanged,
Regards,
Bill
Hello,
My computer is a Windows 10 Pro, 22H2 and my browser is Chrome version 126.0.6478.127 (Official Build) (64-bit)
Also, I've an application using the RichEdit having the same effect described before
Regards
Hi Bill,
We have further validated the reported issue using the video you shared and the problem was replicated only when we manually focused the editor after applying the bold format.
This issue occurs due to the following reasons:
Working Case:
If you type some content ending with a space, then apply bold and start typing immediately, it will function correctly.
Non-Working Case:
If you type some content ending with a space, then apply bold and manually position the cursor at the end of the content before starting to type, it will not function properly. This issue occurs because manually focusing on the node containing ​ does not focus on the node but instead shifts the focus to the text content of the previous element. This is the default browser behavior.
To ensure bold formatting continues after manually focusing the editor using the mouse, press the right arrow key and then begin typing.
Note: This behavior varies by browser. For instance, Firefox handles this use case of manually focusing using the mouse correctly.
You can view a default content editor DIV sample here: https://stackblitz.com/edit/quoy9j-w4jonc?file=index.ts,index.html
Regards,
Revanth