HI,
I using some specific codes in “input” and “img’ elements, like that:
<input id=”” class=”FXDB” FX=”L:1″ ………….>
<img class="FXalert" FX=”FirstName”………… />
I am using this elements inside a CODE BLOCK, and every thing works perfectly.
MY PROBLEM happens in some cases when an incorrect code is putted in the page, in this situation the AUTOCORRECT of wordpress change my code and DELETE the FX in the elements.
How could I disable this autocorrection in specific pages?
THANKS
Hey!
This is more of a WordPress issue rather than a theme one, unfortunately is out of the support scope we offer, try contacting a developer.
Best regards,
Josue
Hi,
Ok, no problem. For someone who has a similar problem, the above code on functions.php solved my problem.
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’);
Thanks
Thank you very much for taking the time to share it :)
Best regards,
Josue