Message d'erreur

Deprecated function: Optional parameter $dropbox declared before required parameter $save_lineage is implicitly treated as a required parameter in include_once() (line 1439 of /home/dsinmetz/public_html/cookbook/includes/bootstrap.inc).

Wysiwyg + CKEditor rajoute <p>&nbsp;</p> au début de mon body...

Portrait de Alex

Ceci corrige ce bug.

A implémenter dans un module custom.

 

* Implementation of hook_wysiwyg_editor_settings_alter()
*/
function MYMODULE_wysiwyg_editor_settings_alter(&$settings, $context) {
if ($context['profile']-?>editor == 'ckeditor') {
// set various CKEditor option to address problem with extra p tags being added
$settings['enterMode'] = 2;
$settings['forceEnterMode'] = true;
$settings['shiftEnterMode'] = 1;
// Example of setting customConfig option. Just note it gets overridden by values in $settings.
//$settings['customConfig'] = 'path/to/my/config.js';
}
}
?>