• jynk

    (@jynk)


    Hello there – amazing plugin so hats off…

    Run into one issue where i can add custom classes to the main editor but now need to add these to Wysiwyg Editor field type of the plugin so the client can match the formatting. How would this be possible?

    Code for main editor is –

    add_filter('tiny_mce_before_init', 'add_custom_classes');
    function add_custom_classes($arr_options) {
    	$arr_options['theme_advanced_styles'] = "first paragraph=first-paragraph;italic paragraph=italic-paragraph;Large paragraph=large-paragraph;quoter=quoter";
    	$arr_options['theme_advanced_buttons2_add_before'] = "styleselect";
    	return $arr_options;
    }

    any help appreciated! Dc.

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  • The topic ‘adding classes/styles like the main text area.’ is closed to new replies.