Merge pull request #4394 from simonwinter/patch-1

Update 05_Typography.md
This commit is contained in:
Daniel Hensby 2016-08-02 21:27:56 +01:00 committed by GitHub
commit d083c9622a

View File

@ -11,6 +11,11 @@ SilverStripe lets you customize the style of content in the CMS. This is done by
Will load the `mysite/css/editor.css` file.
If using this config option in `mysite/_config.php`, you will have to instead call:
:::php
HtmlEditorConfig::get('cms')->setOption('content_css', project() . '/css/editor.css');
Any CSS classes within this file will be automatically added to the `WYSIWYG` editors 'style' dropdown. For instance, to
add the color 'red' as an option within the `WYSIWYG` add the following to the `editor.css`