Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

How to fill styleselect in DOM when using SimpleTinyMCE


Go to End


2 Posts   1199 Views

Avatar
david_b

Community Member, 3 Posts

30 May 2012 at 7:41pm

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

Avatar
benshu

Community Member, 4 Posts

21 July 2012 at 12:08am

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.