7913 Posts in 1355 Topics by 930 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 360 Views |
-
How to fill styleselect in DOM when using SimpleTinyMCE

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 luckAny help is appreciated.
Cheers from Austria,
David -
Re: How to fill styleselect in DOM when using SimpleTinyMCE

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.
| 360 Views | ||
|
Page:
1
|
Go to Top |

