答案 0 :(得分:2)
function MODULE_wysiwyg_editor_settings_alter ( &$settings, $context ) {
if ( $context[ 'profile' ]->editor !== 'tinymce' ) {
return;
}
// Fix formatting on html source view
$settings[ 'apply_source_formatting' ] = true;
}