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.

66 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. I like what you guys are up too. This sort of clever work and reporting!
    Keep up the fantastic works guys I’ve incorporated you guys to my
    blogroll.

    Here is my homepage … Webster

  4. We are Chinese Handbags wholesaler, supply many kinds of cheap Handbags,replica Handbags,wholesale Handbags,”TinyMCE Valid Elements | engfer(s)”, and other fashion accessories. All are excellent quality with good price.You can look our website cheap discount bags.

  5. We are Chinese Handbags wholesaler, supply many kinds of cheap Handbags,replica Handbags,wholesale Handbags,”TinyMCE Valid Elements | engfer(s)”, and other fashion accessories. All are excellent quality with good price.You can look our website wholesale cheap bags.

  6. I have been surrfing online greater than 3 hours lately, but I by no means discovered any interesting article like yours.
    It’s beautiful value sufficient foor me. Personally, if aall web
    owners and bloggers made excellent content material as you did, the internet
    shall be a lot more seful than ever before.

    My web site :: three week diet reviews

  7. I read a lot of interesting content here.
    Probably you spend a lot of time writing, i know how to save you a lot of work, there is an online
    tool that creates readable, google friendly posts in minutes, just type in google – k2seotips unlimited content

  8. I’ll examine the seeds after the first twenty four hours,
    then I’ll check them every 12 hours after that but, after the first three or four nights,
    in the event the seeds haven’t germinated – then Iam going to contemplate they are not viable and definitely not happy with these vegetables.
    Whenever you purchase Marijuana vegetables that are feminized on-line, make sure you are working with a
    respected and reliable seed provider who has protected payment
    features. The Initial Smart Seeds Organization has been promoting Marijuana seeds for over 20 years,
    offering just vegetables that are authentic from the
    breeders that are true. Regardless of how tiny or big your order, you
    will constantly qualify for the most recent seeds that are free, determined by
    seed company that is picked and your dimension. Some are Autoflowering Vegetables, although some would be the typical versions.

  9. The program will mimic a mixing board, so you don’t have to click and drag with your mouse in order
    change the volume of your faders. Mark works for DMS in the UK who sell various DJ Sample packs
    and MIDI producer packs. With music making software and
    beat making software these days the sky is the limit to what kind
    of music you can make.

  10. It will also increase the ranking of your website on search engines and
    will drive more traffic to your website. The website speed test at Secret Search Engine Labs will analyze how fast a page on your
    site is loading and give you tips on how to improve it. But
    it seems Memorial Day wasn’t important enough to Google.

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>