Closed
Description
Issue Overview
With responsive websites, big titles or text in small columns are difficult to handle. They often have widows (words alone on the last line of a paragraph) which is not good from a typographic perspective.
In that context where line breaks have to be avoided, non breaking spaces are really useful to keep some control over the text.
I have noticed that non breaking spaces are removed by Gutenberg when the post is saved.
This is not the case of the current editor where non breaking spaces are kept.
Tested with Gutenberg 1.7
Related to #3220.
Steps to Reproduce (for bugs)
- Edit a block as HTML or the entire post in text mode, insert a non breaking space anywhere
- Save the post
Expected Behavior
- Non breaking spaces must be saved (bug)
- In visual mode mode, non breaking spaces could be revealed (enhancement)
- In visual mode mode, non breaking spaces could be added easily by using
Option+Spaceon Mac orCtrl+Shift+Spaceon Windows (enhancement)
Current Behavior
- Non breaking spaces are removed from the markup when saving the post
- Non breaking spaces are removed from the markup when switching from HTML to visual mode
- Non breaking spaces are invisible in Visual mode
Activity