Although it's not recommended to insert such things into your code - use CSS-classes instead - you can use your own config for the editor. You can find the configuration settings on tinymce.com https://www.tinymce.com/docs/configure/
Make a copy of system/config/tinyMCE.php and name it system/config/tinyCustom.php
In your system/config/dcaconfig.php insert this code
PHP Code:
<?php
/** use tinyCustom for all textareas that use tinyMCE */
if(is_file(TL_ROOT.'/system/config/tinyCustom.php'))
{
array_walk_recursive($GLOBALS['TL_DCA'], function(&$v, $k){
if($k === 'rte' && $v === 'tinyMCE')
{
$v = 'tinyCustom';
}
});
}
/** */
Also there also are extensions to modify TinyMCE https://github.com/cliffparnitzky/TinyMcePluginLoader
Here is my personal tinyCustom.php http://public.andreasburg.de/tinyCustom.zip
Bookmarks