TinyMCE Valid Elements

WordPress PluginAllows one to add “invalid” and custom HTML elements to the TinyMCE editor.
Download:

tinymce_valid_elements.zip (version 0.3)

Tags: tinymce, editor, html, element

Requires at least: 2.5

Tested up to: 2.7.1

Description

By default, WordPress’ WYSIWYG editor, TinyMCE, will strip out of your Article and Page HTML code any elements that are not defined as “valid elements”; this can be extremely annoying (especially if you want to include iframes).

This plugin will allow you to extend what TinyMCE defines as “valid elements”. By doing so, TinyMCE will no longer remove, delete, or strip-out the additional elements and attributes that you specify.

** NOTE: Make sure after you add elements or attributes you do a hard refresh (ctrl + F5) of your browser on a TinyMCE screen (editing or creating a page/post) so that the TinyMCE cache will be refreshed! You will not see your changes until you do this!

Installation

  1. Upload the tinymce_valid_elements/ directory and its contents to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Manage -> TinyMCE Valid Elements and add some elements and attributes.

Read the Help Section at the bottom of the management page.

Frequently Asked Questions

I added new elements/attributes, why is TinyMCE still stripping it out?

  • Most likely, you need to do a hard refresh of your browser (ctrl + F5). Your JavaScript cache needs to be refreshed.

67 thoughts on “TinyMCE Valid Elements

  1. I have the same problem as wolfgang. “I would like to enable one further attribute for element . When doing so my attribute is enabled while all *default* attributes (like “class”) are gone.”

    I have had to manually add ALL valid attributes along with my invalid attribute to get it to work as desired. Other than that it works great.

  2. Does this plugin work with WordPress 3.3.2 ?

    I can’t find “Manage -> TinyMCE Valid Elements” so I cannot add any elements or attributes right now :(

  3. Pingback: SyntaxHL Editor | Best Plugins - wordpress – widgets – plugin 2012

  4. You are doing an incredible job buddy. Regards from hangzhou China. Keep together with the great do the job.

  5. Dude, you rock! Thanks for this great plugin!!! TinyMCE was string this one anchor tag on me and I couldn’t figure out why. I used your plugin to add anchor tags and the title, href, and class attributes to the ‘valid elements’ and… problem solved! Thanks again!

  6. Pingback: Anonymous

  7. Pingback: Weight Gainer nedir?

  8. Pingback: Bewerte den Comic Charakter über dir - Forumla.de

  9. Excellent work! This is the form of facts that needs to be shared throughout the website. A sense of shame on bing for no longer placing this kind of post higher! Come on in excess of along with request information from this site. Thank you Means)

  10. Good issues permanently, you only acquired a fresh target audience. Exactly what would you would suggest when it comes to this page that you made a week during the past? Any kind of favourable?

  11. Have you ever considered about adding a little bit more than just your articles?
    I mean, what you say is important and everything. But just imagine if you added some great pictures
    or videos to give your posts more, “pop”! Your content is excellent but with pics and clips, this blog could undeniably be
    one of the greatest in its niche. Excellent
    blog!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>