Title: 2.1 switch between Visual and Code tabs breaks video embed code
Last modified: August 18, 2016

---

# 2.1 switch between Visual and Code tabs breaks video embed code

 *  [Kyle Gilman](https://wordpress.org/support/users/kylegilman/)
 * (@kylegilman)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/21-switch-between-visual-and-code-tabs-breaks-video-embed-code/)
 * I manage a few blogs with writers who are not particularly good at the technical
   stuff. So they like to keep the visual editor on. I recently upgraded one of 
   the blogs to 2.1 because the new tools for inserting pictures are a lot clearer.
 * But now they’re coming to me asking how to embed videos from youtube. I tried
   it out myself and found that if you switch to the “Code” tab, paste in the YouTube
   embed code and then save the post, you’re fine. However, if you switch back to
   the “visual” tab, it strips out a bunch of tags and changes `<embed>` to `<ibed
   >` which is a tag I’ve never heard of before. And the video does not show up 
   in the post. The same thing happens with Revver. Anyone know what’s going on 
   here?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 4 months ago](https://wordpress.org/support/topic/21-switch-between-visual-and-code-tabs-breaks-video-embed-code/#post-514396)
 * The embed to ibed thing is obviously a bug, as it’s appearantly trying to change
   em tags to i tags.
 * However, embed is not a valid tag anyway. They should be using object tags.
 * Best I can recommend is to use a YouTube plugin to insert videos instead of copying
   the code from YouTube.
 *  Thread Starter [Kyle Gilman](https://wordpress.org/support/users/kylegilman/)
 * (@kylegilman)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/21-switch-between-visual-and-code-tabs-breaks-video-embed-code/#post-514411)
 * I know embed isn’t a valid tag, but it’s in the default YouTube code. I hadn’t
   thought of that em to i thing. That’s a good explanation.
 * But even without using an embed tag, the WYSIWYG still breaks the embedding. 
   As far as I know there aren’t any (stable) plugins designed for video that work
   with with 2.1
 *  [drmike](https://wordpress.org/support/users/drmike/)
 * (@drmike)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/21-switch-between-visual-and-code-tabs-breaks-video-embed-code/#post-514425)
 * WP-ExtremeVideo is working fine for us.
 *  [bittersweet](https://wordpress.org/support/users/bittersweet/)
 * (@bittersweet)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/21-switch-between-visual-and-code-tabs-breaks-video-embed-code/#post-514664)
 * I’m in a similar situation as kylegilman. WordPress 2.1 is changing <embed> to
   <ibed>. I know that <embed> is not a valid tag, but some sites only offer that
   code. If this is a bug in WP2.1, are there any changes I can make to the code
   that is provided to me as <embed> to make it work in WordPress (without using
   a plugin, since this particular video doesn’t work with a youtube plugin, since
   it isn’t from one of the popular viral video sites. I’ve included the code below.
   Appreciate any assistance.
 *     ```
       <embed src="http://services.brightcove.com/services/viewer/federated_f8/353515028" bgcolor="#FFFFFF" flashVars="videoId=494649996&playerId=353515028&viewerSecureGatewayURL=https://services.brightcove.com/services/amfgateway&servicesURL=http://services.brightcove.com/services&cdnURL=http://admin.brightcove.com&domain=embed&autoStart=false&" base="http://admin.brightcove.com" name="flashObj" width="486" height="412" seamlesstabbing="false" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
       ```
   
 *  [bittersweet](https://wordpress.org/support/users/bittersweet/)
 * (@bittersweet)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/21-switch-between-visual-and-code-tabs-breaks-video-embed-code/#post-514667)
 * The changing of <embed> to <ibed> seems to be a bug within the TinyMCE editor
   itself. It looks like it was fixed today.
 * See forum thread [ here](http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=17069)
   and it listed in the change log (the bug was fixed today) listed [here](http://tinymce.moxiecode.com/tinymce/changelog)–
   seach for ibed under 2.1.0 (2/12/07).
 * Since it will likely be awhile before this bug is fixed in the WordPress version
   of the TinyMCE editor, can anyone offer any suggestions on how to change <embed
   > code to <object> code or is that even possible. I’d prefer to use valid tags
   anyway. As mentioned in this thread, many sites including YouTube only provide
   <embed> code.
 *  [flick](https://wordpress.org/support/users/mosey/)
 * (@mosey)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/21-switch-between-visual-and-code-tabs-breaks-video-embed-code/#post-514700)
 * Thanks for the link and info, bitterwsweet 🙂 I came across this today whilst
   trying to embed a flash player. Looks as though I’ll have to try one of the plugins.
   Hope it gets resolved in the next release of WordPress.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘2.1 switch between Visual and Code tabs breaks video embed code’ is closed
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 5 participants
 * Last reply from: [flick](https://wordpress.org/support/users/mosey/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/21-switch-between-visual-and-code-tabs-breaks-video-embed-code/#post-514700)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
