With the advent of many different screensizes, manual line ending (not sentence-endings) has become a bit of a guessing/repetitive task. I want to avoid having the first short word of a new sentence on the ending of the line all by itself on smaller screens.
After a period, at the start of a new sentence, is there a way to make 1, 2 or 3-letter words be followed automatically by a non-breaking-space instead of a normal space in tinymce?
// Show ­ and in TinyMCE editor's text mode function override_mce_options($initArray) { // Add entities to the default array (nbsp, shy) $initArray['entities'] .= ',160,nbsp,173,shy'; $initArray['entity_encoding'] = 'named'; return $initArray; } add_filter('tiny_mce_before_init', 'override_mce_options');