Hello.
I wrote shortcode, that inserts div-tags.
While publicating the post (with this shortcode) tinymce encloses code inserted by this short code by p-tags, which finally makes this xhtml invalid.
I found filter:
function change_mce_options( $init ) {
$init['force_p_newlines'] = false;
return $init;
}
add_filter("mce_force_p_newlines", "change_mce_options");
But it's not seem to work the way I want.
Could you show what's wrong with it, or where I can find information (or solution) on this topic?
Thank you in advance.