GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
20.78k stars 3.9k forks source link

BUG: " " are getting removed by RTE #5984

Closed Ju99ernaut closed 2 weeks ago

Ju99ernaut commented 2 weeks ago

GrapesJS version

What browser are you using?

Chrome v123.0.6312.124

Reproducible demo link

https://grapesjs.com/demo.html

Describe the bug

How to reproduce the bug?

  1. Add a text element
  2. Open RTE and type a word
  3. Select the word and make it a link or wrap for style
  4. Add space and type second word
  5. Select the second word and make it a link or wrap for style

What is the expected behavior? The space should be preserved

What is the current behavior? The space is getting removed

https://www.loom.com/share/e4638445ed264ce6826657975b0c9a4c?sid=ad27081d-045b-40d7-9041-3858b8253074

Code of Conduct