enonic / app-contentstudio

Content Studio of Enonic XP
GNU General Public License v3.0
10 stars 4 forks source link

HtmlArea adds a non-breaking space on paste #7570

Closed alansemenov closed 1 month ago

alansemenov commented 1 month ago

When text is pasted into an HtmlArea, editor adds a nbsp; which affects text wrapping when the text is rendered. We should avoid this from happening (unless nbsp; was already in the original text, of course).

See the videos below:

https://github.com/enonic/app-contentstudio/assets/11612490/6306f99b-f50b-412c-9c13-12cd74e68182

https://github.com/enonic/app-contentstudio/assets/11612490/1f30dd3b-774f-4b48-873a-98a44259cff8