Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » SimpleTinyMCEField::setExtraOptions() error

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 937 Views
  • AdamJ
    Avatar
    Community Member
    145 Posts

    SimpleTinyMCEField::setExtraOptions() error Link to this post

    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!

  • AdamJ
    Avatar
    Community Member
    145 Posts

    Re: SimpleTinyMCEField::setExtraOptions() error Link to this post

    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?

  • forester
    Avatar
    Community Member
    4 Posts

    Re: SimpleTinyMCEField::setExtraOptions() error Link to this post

    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

    937 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.