TinyMCE, the preferred Text Editor of wordpress is surely lacking in the configurability department. Hence lot’s of Plugins (e.g. this extremely heavy one) that enable you to alter or extend its default settings exist.
Still i did not find a suitable plugin for my extremely simple task of changing a few init options. Luckily wordpress provides the tiny_mce_before_init action, that gives you full access to all init options. No need to hack the wordpress core files there!
A quick Example:
If you put this simple piece of code in your plugin file or functions.php, it switchs the default entity encoding of tinymce to ‘raw’.



Comments