Trouble with kses.php
-
I’m having a little trouble with my website. I need to add two new attribute types to be allowed in the source editor. I need to add data-flv and data-mp4. These two attributes need to used on both a a (anchor) tag and the img (image) tag.
I have added them to the kses.php file but the editor still strips them when i jump between source and visual views. How do I prevent this? Do I need to re-run a configuration script? If so what would I run.
Here is a snippet of the changes I have made to the kses.php file.
$allowedposttags = array( 'address' => array(), 'a' => array( 'class' => array (), 'data-flv' => array (), 'data-mp4' => array (), 'href' => array (), 'id' => array (), 'title' => array (), 'rel' => array (), 'rev' => array (), 'name' => array (), 'target' => array()), <<<OMITTED SOME >>> 'img' => array( 'alt' => array (), 'align' => array (), 'border' => array (), 'class' => array (), 'data-flv' => array (), 'data-mp4' => array (), 'height' => array (), 'hspace' => array (), 'longdesc' => array (), 'vspace' => array (), 'src' => array (), 'style' => array (), 'width' => array ()),
- The topic ‘Trouble with kses.php’ is closed to new replies.