Hello,
I have created a new admin module and I am using SimpleHTMLEditorField in the form like this:
function getEditForm($id) {
$validator = new RequiredFields('article_name', 'article_date','article_content');
// Create form fields
$fields = new FieldSet(
// TODO The ID field needs to be hidden but while testing make it readonly
new ReadonlyField('ID','id #',$id),
new TextField('article_name', "Article Name", ""),
$dateField = new DateField('article_date', "Article Date", ""),
new CheckboxField('article_publish',"Publish",""),
new CheckboxField('article_archive',"Archive",""),
new SimpleHTMLEditorField('article_content', "Content")
);
The SimpleHTMLEditorField shows when the form loads normally, but it does not show when the form loaded using ajax on the right area of admin panel.
How can I get the SimpleHTMLEditorField working in Ajax form ? Please Help ?
Thanks