Reputation: 97
I want to change the default "Timesnewroman" font to "Verdana" / something else. I tried config.font_style
and config.font_names
in config.js but it didn't worked. Is there any workaround to change this settings.
Note: I'm using ckeditor plugin via Drupal 7 WYSIWYG module.
Upvotes: 0
Views: 292
Reputation: 19
You can use hook in your template.php file
function THEMENAME_wysiwyg_editor_settings_alter(&$settings, $context) {
if ($context['profile']->editor == 'ckeditor') {
$settings['font_names'] = 'Arial/Arial, Helvetica, sans-serif; Times New Roman/Times New Roman, Times, serif;Verdana';
$settings['font_defaultLabel'] = 'Verdana';
}
}
You also can add other settings for CKEditor
Upvotes: 0