daily pastebin goal
71%
SHARE
TWEET

Span Tags Stripped

iconnik Feb 19th, 2018 447 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*prevents span tags being stripped by 'Tiny MCE Advanced'when switching from text to visual editor */
  2. function override_mce_options($initArray) {
  3. $opts = '*[*]';
  4. $initArray['valid_elements'] = $opts;
  5. $initArray['extended_valid_elements'] = $opts;
  6. return $initArray;
  7. } add_filter('tiny_mce_before_init', 'override_mce_options');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top