microsoft / roosterjs

roosterjs is a framework-independent javascript rich text editor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bold style is missing when select the bold text and input

haven2world opened this issue · comments

Describe the bug
(under content model)
When I select the bold text and then input some characters, the new characters which replaced the bold text is not bold

To Reproduce
Steps to reproduce the behavior:

  1. Go to demo site
  2. Input some text and set them to bold
  3. Select them and input some new stuff
  4. See error

Expected behavior
The new added text should also be bold like the legacy editor

Screenshots
https://github.com/user-attachments/assets/0f6c1c54-43ae-45f5-bf62-9c4c755a2e8f

Device Information

  • OS: mac
  • Browser chrome
  • Version latest

Got it. So you mean select the whole part of bold text, and type something to replace it, right?