Tierra Innovation

Tierra Lab

New Plugin: Extend KSES

Extend KSES

Over the many deployments of Wordpress and Wordpress MU, we have found that our clients are constantly requesting the ability to post HTML that the core of Wordpress does not support. Mostly, it is HTML used for video embedding, but it can also be enhancements to existing HTML tags that are supported.

Today, we present our latest plugin titled, “Extend KSES.” KSES is a reference to the file that controls HTML that Wordpress allows. The plugin that we are releasing is a modified version of a plugin we developed for WNET.org and their various Wordpress platforms.

This plugin extends the HTML functionalify of the Wordpress kses.php file, which states the allowable HTML that the post/page content editor will accept. It allows the site administrator to check pre-defined HTML tags that can also be allowed via the editor. Tags include: `object`, `embed`, `param`, `iframe`, `map` and extensions have been added to the `div` and `img` tags.

Keep in mind, that by checking a tag, you are making it acceptable to post said HTML and save it. If your users also post content, it is important that you make sure you are not enabling any malicious HTML from wreaking havoc to your environment. If there is a tag that is missing or that you would like us to add and support, feel free to leave a comment below.

How To Install

First, you’ll need the plugin. You can download it here. After you have completed the download, follow these short steps:

  1. Upload extend-kses to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Check the boxes next to the HTML tag you wish to enable and click save options
  4. Paste HTML code into the HTML version – NOT the visual version – of the post/page editor and save.

Frequently Asked Questions

What tags are currently supported?

  1. `div` tag extended to allow for `id` child tag.
  2. `embed` tag is now fully supported, including the following children tags: `style`, `type`, `id`, `height`, `width`, `src` and the entire `object` tag (including children).
  3. `iframe` tag is now fully supported, including the following children tags: `width`, `height`, `frameborder`, `scrolling`, `marginheight`, `marginwidth` and `src`.
  4. `img` tag extended to allow for `usemap` child tag.
  5. `map` tag is now fully supported, including the following children tags: `name` and `id`
  6. `object` tag is now fully supported, including the following children tags: `style`, `height`, `width`, the entire `param` tag (including children) and the entire `embed` tag (including children).
  7. `param` tag is now fully supported, including the following children tags: `name` and `value`

Bookmark and Share

3 Responses to “New Plugin: Extend KSES”

  1. Joe Says:

    Excellent. No more custom template pages to do that :)

  2. Joe Banks Says:

    The development of the WNET.org website resulted in 3 great plug-ins for the WordPress community! The functionality of “Extend KSES” we’d contemplated but didn’t have the time or resources to investigate further. Instead, some of our users ended up using the FCK Editor WordPress plugin, which, to us TinyMCE Advanced plugin users, is counter intuitive! Good to see you stuck it out with TinyMCE, especially in regard to your clients. The WNET.org white paper is being read tonight!

  3. Todd Says:

    Thanks Joe! We’ll continue to release new plugins we hope others will use that have been road blocks in opening up Wordpress to becoming more mainstream. Stay tuned for our next plugin based off of the billboard located on all of the homepages of the various WNET.org projects (Nature, Wide Angle, etc).


Leave a Reply

Copyright © 2010 Tierra Innovation, Inc.