Jump to:

520 Posts in 248 Topics by 263 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » Tiny MCE content CSS

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 1791 Views
  • monn
    Avatar
    Community Member
    1 Post

    Tiny MCE content CSS Link to this post

    Hi guys,

    I've had a search around for this, and while I've found information none of it seemed to either work or be applicable.

    All I want to be able to do is have 'typography.css' and 'layout.css' included in the content editor, Tiny MCE. Now from what i read this should happen by default, and is the intended usage, having these 2 CSS files included in both the content editor and the front end to maintain consistency.

    Before I understood this I removed some references to these files thinking i didnt need them, instead favouring my own naming/method for CSS. So the question is how do I get them back in the content editor? I thought they might have been magically included in the content editor when either doing the old style of CSS inclusion in a page type:

    Requirements::themedCSS("layout");

    or the newer way, <% require themedCSS(hiive) %>

    Neither of these seems to have any affect on whats included in to the content editor, so id assume there is a config file or sorts for tiny mce that controls this, I've looked but haven't found anything.

    Thanks.

  • Devlin
    Avatar
    Community Member
    215 Posts

    Re: Tiny MCE content CSS Link to this post

    Hi,

    You might want to try:

    HtmlEditorConfig::get()->setOption('content_css',project().'/css/typography.css, '.project().'/css/layout.css');

    http://doc.silverstripe.org/doku.php?id=htmleditorconfig

    1791 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.