Extending TinyMCEÂ Default Whitelist for HTML5 Element Tags
Having said that, I was reviewing a very interesting video fromÂ MaAnna StephensonÂ ofÂ blogaid.netÂ about TinyMCE Advanced Configuration. If you don’t already have it, the link is atÂ https://wordpress.org/plugins/tinymce-advanced/. I’m also using this plugin and her video helped me eliminate useless buttons and set a few settings that I had not done before. Her video will feature at the end of mine. I urge you to watch it!
The WordPress plugin I’m talking about allows advanced HTML5 coders to add more tag attributes that normally would be stripped away in a default installation of WordPress. This is especially useful if you intend to add JSON+LD or Microformatting. Here’s why I am using it:
- Microdata formats need more element attributes
- iframe code is often stripped away
- Gives you more leeway to markup code the way you want it.
Get your copy fromÂ https://wordpress.org/plugins/advanced-tinymce-configuration/
Here’s the value I have added. Feel free to fork the gist and extend to your liking.
Advance TinyMCE Configuration from Github