Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Problem with SimpleTinyMCEField

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: 2041 Views
  • Greg1
    Avatar
    Community Member
    28 Posts

    Problem with SimpleTinyMCEField Link to this post

    Hi all

    I am trying to use SimpleTinyMCEField but it isnt working. The popup loads but none of the buttons are appearing.
    (SimpleWysiwygField works correctly)

    <?php

    class ProductContent extends DataObject
    {
       static $db = array (
          'ProductContentTitle' => 'Text',
          'ProductContentDetail' => 'Text'
       );
       
       static $has_one = array (
          'ProductPage' => 'ProductPage'
       );
          
       public function getCMSFields_forPopup()
       {
          return new FieldSet(
             new TextField('ProductContentTitle'),
             new SimpleTinyMCEField('ProductContentDetail')
          );
       }
    }

    ?>

    _config.php snippet

    SimpleTinyMCEField::set_default_buttons(array(
       'cut,paste,|,undo,code',
       'bold,italic,underline,|,justifyleft,justifyright'
       ));

  • UncleCheese
    Avatar
    4085 Posts

    Re: Problem with SimpleTinyMCEField Link to this post

    There was an update recently that changed the jquery resource for SimpleTinyMCEField. Make sure you're up to date.

    I have it running on the demo site on the StaffMemberPage example. I'm not seeing any errors reported in Firebug, so I'm not sure what could be going on.

  • Greg1
    Avatar
    Community Member
    28 Posts

    Re: Problem with SimpleTinyMCEField Link to this post

    Thank you for the response.

    I have the latest release (not trunk) from the module page: http://www.silverstripe.org/dataobjectmanager-module/

    and am running Silverstripe 2.3.1.

    What do I need to update?

  • kuenkuen82
    Avatar
    Community Member
    41 Posts

    Re: Problem with SimpleTinyMCEField Link to this post

    I'm using 2.4, how do I set the other values? For example setting the Style

    2041 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.