Remove TinyMCE Tags format tags

I want to remove some tags defined in the TinyMCe format menu. How can I do this when initializing tinymce

+4
source share
1 answer

You can use the theme_advanced_blockformats variable in the init function to determine the tags you want.

theme_advanced_blockformats : "h2,h3,p", 

The above code will only allow h2, h3 and p tags in the format menu.

You can learn more about tinyMCE configuration in this tutorial.

+2
source

Source: https://habr.com/ru/post/1382826/


All Articles