Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*prevents span tags being stripped by 'Tiny MCE Advanced'when switching from text to visual editor */
- function override_mce_options($initArray) {
- $opts = '*[*]';
- $initArray['valid_elements'] = $opts;
- $initArray['extended_valid_elements'] = $opts;
- return $initArray;
- } add_filter('tiny_mce_before_init', 'override_mce_options');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement