Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do I set init params for WP TinyMCE?

Apologies if this is a stupid question but I have researched it and have drawn a blank.

I want to stop the WordPress Advanced TinyMCE plugin inserting tags all over and I know that the answer is to add this

tinyMCE.init({
        invalid_elements : "span"
});

to the init file. My problem is that /public_html/wp-includes/js/tinymce/tiny_mce.js appears to be minified and I have no idea where to add my few lines of code.

Can anyone please help?

like image 784
user3433664 Avatar asked Aug 05 '26 10:08

user3433664


1 Answers

Try the filter tiny_mce_before_init check it out in the Wordpress Codex Also check out this

like image 181
Pavel Petrov Avatar answered Aug 07 '26 00:08

Pavel Petrov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!