Jump to:

521 Posts in 248 Topics by 263 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » 2.3.4. TinyMCE in CMS without custom editor.css

Forum for content editors and CMS users.

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

Page: 1
Go to End
Author Topic: 1941 Views
  • Devlin
    Community Member
    215 Posts

    2.3.4. TinyMCE in CMS without custom editor.css Link to this post

    Hi there,

    while upgrading from 2.3.3 to 2.3.4 I have noticed that my custom editor.css won't load anymore for TinyMCE in the CMS. So I have traced the problem and I found out that you moved HtmlEditorConfig::get('cms')->setOptions() from LeftAndMain to cms/_config. So the problem is that you actually check SSViewer::current_theme() before I call SSViewer::set_theme().

    My solution so far is to simply set the content_css value again in my own _config but I guess this shouldn't be the point.

    'content_css'=>'cms/css/editor.css, '.(SSViewer::current_theme() ? THEMES_DIR . "/" . SSViewer::current_theme() : project()) . "/css/editor.css"

    But maybe I overlooked something.

  • Platypus
    Community Member
    43 Posts

    Re: 2.3.4. TinyMCE in CMS without custom editor.css Link to this post

    Yes, the editor.css doesn't load anymore in 2.3.4
    I'will try this workaround, but I think this shouldn't be the "official" way...

    /edit: It works with your addition to the _config.php, thanks for posting this!

  • Willr
    Forum Moderator
    5511 Posts
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.