Support » Fixing WordPress » Visual editor breaks YouTube embedding?

  • [Moved from Requests and Feedback]
    We have an annoying problem and wonder if it’s a WordPress bug or something we’re doing wrong.

    Our company blog has content reviewers who don’t know HTML and use the Visual editor to review and edit authors’ posts. Authors frequently embed YouTube videos in posts. Our visual design standard calls for the videos to be centered within the main content area, so authors implement them in the HTML editor in a center-styled div tag like this:

    <div style="text-align:center;">

    The YouTube URL is on a separate line as WordPress requires for it’s embedding feature.

    The problem is, when an editor reviews such a post in the Visual Editor, WordPress reformats the HTML and puts the div and the YouTube URL all on one line, like so:

    <div style="text-align:center;"></div>

    Consequently, the YouTube video does not show up because the URL is not maintained on a separate line. We had editors publish several posts in which the embedded vids didn’t show up before we discovered this was what was happening. So we’re forced to send every video post thru one more step… having the code checked by a code-savvy author.

    This seems like a bug that should be reported, but maybe there’s something else we should be doing that we just don’t know about? Thanks for any ideas.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Visual editor breaks YouTube embedding?’ is closed to new replies.