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

SimpleTinyMCEField::setExtraOptions() error


Reply

3 Posts   942 Views

Avatar
AdamJ

28 September 2010 at 12:16am (Last edited: 28 September 2010 12:16am), Community Member, 145 Posts

So when I do this:

SimpleTinyMCEField::setExtraOptions("theme_advanced_blockformats: 'p,h3,h4,h5,h6'");

I get this:

Fatal error: Using $this when not in object context in C:\...\dataobject_manager\code\simple_tinymce_field\SimpleTinyMCEField.php on line 180

Any ideas? There was an initial promise of more docs for SimpleTinyMCEField, but I'm guessing you got caught up in creating more awesome and amazing things!

Avatar
AdamJ

28 September 2010 at 12:28am Community Member, 145 Posts

Just a note that using set_default_extra_options works. I'm guessing that the previous didn't work because it is meant to be used in the context of a created simpleTinyMCEField and not in the _config.php file. Am I right?

Avatar
forester

30 November 2010 at 11:40pm Community Member, 4 Posts

I've tried to customize the SimpleTinyMCEField with its function set_default_extra_options, but it didn't work..could you tell me how to manipulate the SimpleTinyMCEField?

My origianl code was:

SimpleTinyMCEField::set_default_extra_options("theme_advanced_blockformats: 'p,h1,h2'");

Thanks in advance