mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
48dfd0b64f
commit
9bb41358fa
@ -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.
|
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
|
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`
|
add the color 'red' as an option within the `WYSIWYG` add the following to the `editor.css`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user