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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

How to fill styleselect in DOM when using SimpleTinyMCE


Reply


2 Posts   706 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.