To customize the default tinymce configuration you can use HTMLEditorConfig file. Note this functionality is likely to be changed in future releases.
You can customize the installation by adding the following examples to your getCMSFields(). This will normally be found in /mysite/code/Page.php, chances are if it’s not there, you know where to find it.
public function getCMSFields() { $fields = parent::getCMSFields(); HtmlEditorConfig::get('cms')->setOption('verify_html', 'false'); return $fields; }
HtmlEditorConfig::get('cms')->enablePlugins('../../tinymce_ssmacron'); // enables plugin HtmlEditorConfig::get('cms')->insertButtonsAfter('charmap', 'ssmacron'); // positions plugin
You can customize any of the TinyMCE options by calling setOption(’optionname’, ‘value’).
HtmlEditorConfig::get('cms')->setOption('verify_html', 'false'); // turn off html validation
Please use comments for notes, tips and corrections about the described
functionality.
Use the Silverstripe Forum to
ask questions.