-
Text editor in tinyMCE
Hello,
I'm new to Contao. I have Contao 3.5 with tinyMCE.
My problem is that I want to have extended text editor with font color, changing fonts and other. But I have only simple editor - such as basic editor shown here
What should I do to get full editor?
Thanks in advance.
-
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
-
Thank you :) I added some other plugins and toolbars and it works.