7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » SimpleTinyMCEField::setExtraOptions() error
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: | 772 Views |
-
SimpleTinyMCEField::setExtraOptions() error

28 September 2010 at 12:16am Last edited: 28 September 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!
-
Re: SimpleTinyMCEField::setExtraOptions() error

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?
-
Re: SimpleTinyMCEField::setExtraOptions() error

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

