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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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