Created
July 3, 2020 19:32
-
-
Save javistuff/50785df1df767cd7182ae1dc7593a414 to your computer and use it in GitHub Desktop.
This file contains 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 at_allow_nbsp_in_tinymce( $mceInit ) { | |
$mceInit['entities'] = '160,nbsp,38,amp,60,lt,62,gt'; | |
$mceInit['entity_encoding'] = 'named'; | |
return $mceInit; | |
} | |
add_filter( 'tiny_mce_before_init', 'at_allow_nbsp_in_tinymce' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment