Hello gang,
I just upgraded to WordPress 3.9. As a result, I can no longer use the [visual editor] plugin Ultimate TinyMCE (http://wordpress.org/plugins/ultimate-tinymce/) to edit posts, pages, etc. It no longer works with WordPress v3.9 or greater. In it's place, I have installed WP Edit (http://wordpress.org/plugins/wp-edit/).
When I used Ultimate TinyMCE, I added a filter in my functions.php file to add fonts to the default Font Family drop-down menu in the WP editor. Here is the code snippet that I used:
/**
* Override the default font-family loaded into tinymce editor. We did this
* because we needed to add the 'Wendy' fonts.
*/
function confit_child_register_tinymce_fonts( $settings ) {
$settings['theme_advanced_fonts'] =
'Andale Mono=andale mono,times;'.
'Arial=arial,helvetica,sans-serif;'.
'Wendy=wendy;'. // Add our own @font-face font
'Wendy Bold=wendy bold;'. // Font from http://www.fontpalace.com/font-details/Wendy+LP+Bold/
// (more are added here but excluded for brevity)
'';
return $settings;
}
add_filter('tiny_mce_before_init', 'confit_child_register_tinymce_fonts');
Now that I've switched to WP Edit, this filter no longer works. The array property 'theme_advanced_fonts' no longer exists. So, now I need to find a replacement method to do this.
Question: What is the correct WordPress way to add additional fonts to the Font Family drop-down menu? Do I still need to use the 'tiny_mce_before_init' filter in some way or some other?
I have searched through Google and the WP support forums but am not finding this topic addressed.
Thanks much.
David