Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » How to fill styleselect in DOM when using SimpleTinyMCE

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 528 Views
  • david_b
    Avatar
    Community Member
    3 Posts

    How to fill styleselect in DOM when using SimpleTinyMCE Link to this post

    Hello,

    maybe it's a pretty basic question, but I just can't figure it out:

    How do I define styles for the 'styleselect' in the SimpleTinyMCE. In my popup I only see the empty dropdown box.

    - Trying to add it somehow in the _config.php --> could not find any documentation - no luck
    - Adding styles in the editor.css and flushing the caches like crazy --> no luck

    Any help is appreciated.

    Cheers from Austria,
    David

  • benshu
    Avatar
    Community Member
    4 Posts

    Re: How to fill styleselect in DOM when using SimpleTinyMCE Link to this post

    This thread might help:
    http://www.silverstripe.org/dataobjectmanager-module-forum/show/13764

    -----
    in _config.php add:

    SimpleTinyMCEField::set_default_content_css('themes/mythemename/css/editor.css');
    $base = Director::absoluteBaseURL();
    SimpleTinyMCEField::set_default_extra_options("body_class: 'typography', document_base_url:'$base'");

    but as thread mentions, in Internet Explorer, has some issues (when in a popup). Havent yet found a solution to that.

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