Update 05_Typography.md

The documentation isn't clear as to where the editor config call should be made. If developers wish to set this up globally, there is a slightly different syntax required.
This commit is contained in:
Simon Winter 2015-07-14 15:20:15 +12:00
parent 48dfd0b64f
commit 9bb41358fa

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`