Is "& n b s p" supported in a Content Block?

Permalink
Trying to add a non-breaking space within a content block, and even using the Advanced Editor it seems to be stripped out. Also tried adding it by putting the mce in HTML mode but it seems to be stripped out there too.

Is a non-breaking space supported in a Content Block?

 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Try wrapping it in Paragraph tags like this
<p></p>

or try
<br />
mhawke replied on at Permalink Best Answer Reply
mhawke
As far as I can tell, inserting a 'non-breaking space' from the 'Special Character' menu item in the editor does indeed insert a space in the resulting content but doesn't show up in the HTML. Through the magic of Google:

http://www.tinymce.com/wiki.php/Configuration:entity_encoding...

I was able to find out the inserting 'entity-encoding: "named"' into the initialization JavaScript for TinyMCE will produce an "& n b s p ;" in the html view of the editor.

To see this for yourself, put a content area into edit mode and choose 'Customize Toolbar'. Choose 'Custom' and insert the following code at the beginning of the settings:

entity_encoding : "named",


Now when you insert a non-breaking space from the Special Characters menu it shows up in the HTML view.

I'm still investigating how and where you change the settings for the other 'Rich Text Area' settings such as 'Default', 'Advanced' and 'Office'.
klm1 replied on at Permalink Reply
This worked great -- thanks, mhawke!