Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Span Tags Stripped

iconnik Feb 19th, 2018 492 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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