Hey guys,
Hopefully this is pretty self explanatory. When I add an HTMLEditorField to my CMS fields when I'm creating a new ComplexTableField and editing it via a Popup, it doesnt add the tinyMCE wysiwyg?
Is this strange? Or am I unable to use the tinyMCE editor inside a ComplexTableField Popup?
public function getCMSFields() {
$fields = parent::getCMSFields();
HTMLEditorField::include_js();
$fields->removeByName('Content');
$fields->addFieldsToTab('Root.Content', new FieldSet(
new HTMLEditorField('Content', 'Content')
));
return $fields;
}
public function getCMSFields_forPopup() {
return self::getCMSFields();
}
public static function getCMSTableField($controller, $name) {
$table = new ComplexTableField(
$controller,
$name,
__CLASS__,
null,
'getCMSFields_forPopup',
null,
'Date DESC'
);
...
Thanks for any help in advance :D