Jump to:

513 Posts in 209 Topics by 259 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » TinyMCE adding STYLES?!

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 1726 Views
  • KINKCreative
    Avatar
    Community Member
    56 Posts

    TinyMCE adding STYLES?! Link to this post

    I'd like my tinymce to just apply tags so that my clients never screw up the look of a website. I notice when I am applying e.g. a Header tag, it adds the styles of my Header from the CSS file (although I am not sure if it loads from another, different CSS or...).

    Is there a way that i disable that, I just need clean markup/tags?

  • banal
    Avatar
    Community Member
    901 Posts

    Re: TinyMCE adding STYLES?! Link to this post

    TinyMCE creates clean markup. It just uses and loads the editor.css file from your mysite/css directory. By default, the editor.css also includes typography.css which is where your typography styles (for h1, etc.) are defined.
    If you don't want this behavior, just remove the import statement in the editor.css file.

    This doesn't create different markup though. It's just influencing the way content is being displayed in the CMS. Usually, it is considered a nice feature when the content is displayed the same way in the editor as it's being shown on the live website.

    1726 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.