Last active
December 5, 2018 22:18
-
-
Save cyancey76/73a9cfc8f299f855deaa1f7803db7bce to your computer and use it in GitHub Desktop.
#Wordpress #function - don't remove html tags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tinymce_fix( $init ) | |
{ | |
$init['extended_valid_elements'] = 'section[*], article[*], div[*], span[*]'; | |
$init['remove_linebreaks'] = false; | |
$init['convert_newlines_to_brs'] = true; | |
$init['remove_redundant_brs'] = false; | |
return $init; | |
} | |
add_filter('tiny_mce_before_init', 'tiny_mce_fix'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment