Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Difference between typography.css and editor.css


Go to End


2 Posts   808 Views

Avatar
Faloude

Community Member, 55 Posts

3 November 2016 at 8:14am

What is exactly is the difference between those two files, which are used by TinyMCE? I believe one is used for the Editor body itself, the other for the Styles dropdown?

The information I find on this subject isn't consistent.

Avatar
jkdude

Community Member, 19 Posts

14 November 2016 at 11:39pm

editor.css is for what actually shows up in the editor while you're editing it. If you have:

h1{
color:red;
}

This will make all your H1 red in the editor only. After saving and publishing, it will not be red in the front end.

typography.css is what actually shows up the the front end but you need to wrap it around a typography class.