Hi Guys,
the required validation not working with wysiwyg editor, it works only if i switched to the text tab, but with visual tab it is not working at all.
$meta_boxes[] = array(
'id' => 'news_event_meta',
'title' => 'Events',
'post_types' => 'news',
'priority' => 'high',
'visible' => [ 'slug:tax_input[news-categories]', 'in', [ 'events' ] ],
'fields' => array(
array(
'name' => 'Event Agenda ?',
'id' => 'event_agenda_check',
'type' => 'checkbox',
'std' => 0, // 0 or 1
),
array(
'name' => 'Agenda',
'id' => 'event_agenda',
'type' => 'wysiwyg',
'raw' => false,
'visible' => array( 'event_agenda_check', true ),
'required' => true,
),
)
);
Thank you for you hard work.