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, Ed, biapar, Willr, Ingo, swaiba

SimpleTinyMCEField::setExtraOptions() error

Go to End

3 Posts   1268 Views


Community Member, 145 Posts

28 September 2010 at 12:16am

Edited: 28/09/2010 12:16am

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!


Community Member, 145 Posts

28 September 2010 at 12:28am

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?


Community Member, 4 Posts

30 November 2010 at 11:40pm

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