[wp-trac] [WordPress Trac] #8850: WYSIWYG editor mangles video embed code

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 13 17:16:10 GMT 2009


#8850: WYSIWYG editor mangles video embed code
--------------------------+-------------------------------------------------
 Reporter:  fd            |       Owner:  azaozz                                    
     Type:  defect (bug)  |      Status:  new                                       
 Priority:  normal        |   Milestone:  2.8                                       
Component:  TinyMCE       |     Version:  2.7                                       
 Severity:  normal        |    Keywords:  youtube embed tinymce editor video wysiwyg
--------------------------+-------------------------------------------------
 The WYSIWYG editor changes this:

 <object width="425" height="344"><param name="movie"
 value="http://www.youtube.com/v/h9zb_Gr8iLc&hl=en&fs=1"></param><param
 name="allowFullScreen" value="true"></param><param
 name="allowscriptaccess" value="always"></param><embed
 src="http://www.youtube.com/v/h9zb_Gr8iLc&hl=en&fs=1" type="application/x
 -shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
 width="425" height="344"></embed></object>

 to this:

 <object width="425" height="344"
 data="http://www.youtube.com/v/h9zb_Gr8iLc&amp;hl=en&amp;fs=1"
 type="application/x-shockwave-flash"><param name="allowFullScreen"
 value="true" /><param name="allowscriptaccess" value="always" /><param
 name="src" value="http://www.youtube.com/v/h9zb_Gr8iLc&amp;hl=en&amp;fs=1"
 /><param name="allowfullscreen" value="true" /></object>

 Note the "allowFullScreen" param is duplicated, the embed tag has been
 removed, the object tag has been modified, and an additional param "src"
 has been added. The video still shows up on the blog itself but it does
 not show up in Google Reader.

 To reproduce:

 1. Start a new post.[[BR]]
 2. Switch to Code view.[[BR]]
 3. Insert YouTube embed code.[[BR]]
 4. Switch to Visual view.[[BR]]
 5. Switch to Code view.[[BR]]

 I am logged in as admin using WordPress 2.7. The "correct invalidly nested
 XHTML" option is unchecked.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8850>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list