I am interested in creating a MS-Word-like system for managing non-breaking spaces before certain characters:
My goal is to automatically insert a non-breaking space before characters like ?
, !
, :
, etc. while typing (or replace a normal space with a non-breaking one), and to add a space after characters like «
, which follow French rules, for example.
Previously, I was accomplishing this in PHP before displaying the content, but it would be much more efficient to have this functionality directly in the Wysiwyg editor.
I have searched for plugins or ways to achieve this but have not been successful. Any suggestions would be greatly appreciated!
Thank you!