I’m trying to achieve a MS-Word-like management for non-breaking spaces before some characters:
While typing, automatically add non-breaking space before ?
, !
, :
etc. (or replace normal space with non-breaking), or add space after «
, etc. (which are rules in French, for e.g.).
I was doing this in PHP before displaying the content, but it should be much better to have it directly in the Wysiwyg.
Cannot find any plugin / ways to achieve that. Suggestions?
Thanks!
You can add a tinymce event on
keydown
(just addsetup
to your tinymce config parameters):