Change TinyMCE to not add paragraphs
-
Hi,
I have followed this documentation page
to enable TinyMCE. Now I would like to change the default behavior of TinyMCE to not add a paragraph for each new line but use instead <br>.
For WordPress I have to use thisfunction tinymce_remove_root_block_tag( $init ) { $init['forced_root_block'] = false; return $init; } add_filter( 'tiny_mce_before_init', 'tinymce_remove_root_block_tag' );
But the TinyMCE in bbPress doesn’t get this setting.
I have tried to do something likefunction bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; $args['quicktags'] = false; $args['forced_root_block'] = false; return $args; } add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );
but it doesn’t work.
How can I pass that “forced_root_block” to the TinyMCE enabled for bbPress?Thanks
Massimo
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.