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.

Content Editor Discussions /

Forum for content editors and CMS users.

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

TinyMCE adding STYLES?!


Reply


2 Posts   1819 Views

Avatar
KINKCreative

Community Member, 56 Posts

15 February 2010 at 8:51am

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?

Avatar
banal

Community Member, 901 Posts

15 February 2010 at 9:38am

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.