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

Problem with SimpleTinyMCEField


Reply


4 Posts   2120 Views

Avatar
Greg1

Community Member, 28 Posts

14 September 2009 at 7:00pm

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'
   ));

Avatar
UncleCheese

Forum Moderator, 4092 Posts

16 September 2009 at 1:55am

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.

Avatar
Greg1

Community Member, 28 Posts

16 September 2009 at 11:17am

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?

Avatar
kuenkuen82

Community Member, 41 Posts

4 August 2010 at 11:07pm

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