Jump to:

1384 Posts in 493 Topics by 522 members

Themes

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: 2092 Views
  • billyb
    Avatar
    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() {
    parent::init();
    Requirements::themedCSS('ArticlePage');
    }

    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?

    Cheers,

    -Bill B

  • Willr
    Avatar
    Forum Moderator
    5508 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)

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