Version 3
end of life
This version of Silverstripe CMS will not recieve any additional bug fixes or documentation updates.
Go to documentation for the most recent stable version.
WYSIWYG Styles
SilverStripe lets you customise the style of content in the CMS. This is done by setting up a CSS file called
editor.css
in either your theme or in your mysite
folder. This is set through
HtmlEditorConfig::get('cms')->setOption('content_css', project() . '/css/editor.css');
If using this config option in mysite/_config.php
, you will have to instead call:
HtmlEditorConfig::get('cms')->setOption('content_css', project() . '/css/editor.css');
add the color 'red' as an option within the WYSIWYG
add the following to the editor.css
.red {
color: red;
}
After you have defined the editor.css
make sure you clear your SilverStripe cache for it to take effect.
[/notice]