WordPress.org

Support

Support » Plugins and Hacks » TinyMCEComments » setting TinyMCE options in TinyMCEComments

setting TinyMCE options in TinyMCEComments

  • joneiseman

    @joneiseman

    Is there some way to set TinyMCE options in the TinyMCEComments plugin?
    I added the following in the functions.php for my theme:

    function change_mce_options( $init ) {
     $init['extended_valid_elements'] = 'span[!class]';
     return $init;
    }
    add_filter('tiny_mce_before_init', 'change_mce_options');

    This change to the TinyMCE options works when using TinyMCE to edit WordPress articles but it doesn’t work when adding comments using TinyMCE through the TiunyMCEComments plugin.

    http://wordpress.org/extend/plugins/tinymcecomments/

Viewing 1 replies (of 1 total)
  • joneiseman

    @joneiseman

    I figured out the answer to my own question. I thought I’d post it here in case anyone else needs an answer to this. The MCE init options are in the $initArray inside the function mcecomment_getInitJS in the file tinyMCEComments.php. I just added the following to the array:

    'extended_valid_elements' => "span[!class]",

Viewing 1 replies (of 1 total)
  • The topic ‘setting TinyMCE options in TinyMCEComments’ is closed to new replies.
Skip to toolbar