Jump to:

1382 Posts in 492 Topics by 521 members


SilverStripe Forums » Themes » CSS: coordinating page classes with tinymce display

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 2088 Views
  • billyb
    Community Member
    1 Post

    CSS: coordinating page classes with tinymce display Link to this post

    Hi all,

    I'm trying to find a why to coordinate the display of page classes which have their own stylesheet with the wysiwyg editing of page instances of those classes.

    For example: following the tutorial I've created an ArticlePage, with it's .ss template and .php class. Following this thread (
    http://www.silverstripe.org/archive/show/59153) I've adding this to my class:

    function init() {

    which very nicely pulls in my ArticlePage.css file for my theme. But in admin mode, non of these styles are applied within the content editor, so my users will be seeing something very different from what renders.

    Tinymce is clearly pulling in the themes typography.css. How can we get it to look to the page classes specific Requirements?


    -Bill B

  • Willr
    Forum Moderator
    5497 Posts

    Re: CSS: coordinating page classes with tinymce display Link to this post

    You can't really. TinyMCE will only pull styles from editor.css (this imports typography.css in most themes)

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.