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