The typographer processes texts not only according to classical laws (non-breaking spaces, correct quotes, hanging punctuation, etc.), but also according to the canons taken from Milchin A. “Publisher's and Author's Guide”. Fans of typography should appreciate this.
I used it in my store engine, and the simple and convenient plugin for TinyMCE became a by-product.
1. Copy the jaretypograph folder to tiny_mce / plugins
2. Connect the plugin when initializing Tinymce
Like that: tinyMCE.init({ ... plugins : "jaretypograph", ... });
3. Display the plugin button on the editor toolbar.
Like that: tinyMCE.init({ ... theme_advanced_buttons1 : "jaretypograph", ... });
Typographer works on PHP5 and UTF8. ')
UPD.When typing a selected fragment, a glitch sometimes occurs due to the fact that TinyMCE surrounds the selected fragment with unnecessary tags if there are broken tags inside the fragment.If someone knows how to get around this, I will be grateful. Thanks dfuse for help, fixed!
UPD2.In some browsers, typing inserts an extra line feed at the beginning of the text.We fix. Fixed!