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.

59 Responses to TinyMCE Valid Elements

  1. Awsome blog post as well as right to the point. I am not sure if this is really the best place to question but do you guys have any ideas on where exactly to hire several professional writers? Thx

  2. Hey there! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no data backup. Do you have any solutions to stop hackers?

  3. 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.

  4. What a wonderful plugin. We at FunCitySocialMedia are extremely grateful to your genius.

    -Renee’
    @funcitygal

  5. Thanks for your posting on this weblog. From my very own experience, there are occassions when softening upward a photograph could provide the professional photographer with a little an imaginative flare. Sometimes however, the soft blur isn’t precisely what you had under consideration and can often times spoil an otherwise good picture, especially if you anticipate enlarging this.

    Replica zenith watches

  6. Pingback: My post « christineaware

  7. Pingback: Another post – pasting from google « christineaware

  8. Pingback: Another paste from google « christineaware

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>