[wp-trac] Re: [WordPress Trac] #5336: TinyMCE Mangles <object> tag's
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 12 19:09:31 GMT 2007
#5336: TinyMCE Mangles <object> tag's
----------------------+-----------------------------------------------------
Reporter: DaveHope | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: TinyMCE | Version: 2.3.1
Severity: normal | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Changes (by lloydbudd):
* summary: Wordpress Mangles <object> tag's => TinyMCE Mangles <object>
tag's
* milestone: => 2.5
Old description:
> I'm trying to embed some flash to a page on my site, I'm entering the
> correct <object> & <enbed> code into the page, which displays fine.
>
> However, If I goto edit the page at a later date the code gets mangled,
> wordpress inserts a </object> before the <embed> and replaces me closing
> /> with ></embed>
>
> This is a real pain, as it means I have to re-edit my flash every time i
> alter the page.
>
> Is there a tag to prevent wordpress altering html, or should this be
> reported as a bug? - I'm guessing the html tidy process doesn't like
> <object> & <embed>
>
> The HTML i'm adding to the code window can be seen here:
>
> ---
> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
> codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
> height="600" width="500">
> <param name="movie" value="/Files/polaroid.swf" />
> <param name="menu" value="false" />
> <param name="quality" value="high" />
> <param name="flashvars" value="flickrID=17378729 at N00" /><embed
> src="/Files/polaroid.swf" menu="false" quality="high" bgcolor="#fff"
> flashvars="flickrID=17378729 at N00" type="application/x-shockwave-flash"
> pluginspage="http://www.macromedia.com/go/getflashplayer" height="600"
> width="500" /></object>
> --
>
> I know that as a wordaround I could probably disable the TinyMCE editor,
> but 95% of the time it's fine.
>
> Dave
New description:
I'm trying to embed some flash to a page on my site, I'm entering the
correct <object> & <enbed> code into the page, which displays fine.
However, If I goto edit the page at a later date the code gets mangled,
wordpress inserts a </object> before the <embed> and replaces me closing
/> with ></embed>
This is a real pain, as it means I have to re-edit my flash every time i
alter the page.
Is there a tag to prevent wordpress altering html, or should this be
reported as a bug? - I'm guessing the html tidy process doesn't like
<object> & <embed>
The HTML i'm adding to the code window can be seen here:
{{{
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
height="600" width="500">
<param name="movie" value="/Files/polaroid.swf" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="flashvars" value="flickrID=17378729 at N00" /><embed
src="/Files/polaroid.swf" menu="false" quality="high" bgcolor="#fff"
flashvars="flickrID=17378729 at N00" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" height="600"
width="500" /></object>
}}}
I know that as a wordaround I could probably disable the TinyMCE editor,
but 95% of the time it's fine.
Dave
--
Ticket URL: <http://trac.wordpress.org/ticket/5336#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list