Hi, in this module can't enable the WYSIWYG editor to improve the user experience with your favourite editor WYSIWYG, in the hook_form_alter():
switch ($form_id) {
case 'faq_node_form':
$form['detailed_question']['#type'] = 'text_format';
$form['detailed_question']['#base_type'] = 'textarea';
$form['detailed_question']['#format'] = NULL;
//drupal_set_message('<pre>' . print_r($form, TRUE) . '</pre>');
break;
}
If you set this, if the content save Drupal will crash with PDOException. The body it's fixed to text plain?
Look the error:
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''plain_text' WHERE ( (nid = '1148') AND (vid = '1149') )' at line 1: UPDATE {faq_questions} SET question=:db_update_placeholder_0, detailed_question=:db_update_placeholder_1_value, :db_update_placeholder_1_format WHERE ( (nid = :db_condition_placeholder_0) AND (vid = :db_condition_placeholder_1) ); Array ( [:db_update_placeholder_0] => What that fuck? [:db_condition_placeholder_0] => 1148 [:db_condition_placeholder_1] => 1149 [:db_update_placeholder_1_value] => Dummy text to testing. [:db_update_placeholder_1_format] => plain_text ) in faq_update() (line 301 of /home/drupal/workspace/project/sites/all/modules/contrib/faq/faq.module).
This is mine error or the module not yet support WYSIWYG textarea fields?
Thanks for the support!