• Resolved subjectego

    (@subjectego)


    I am trying to put embedded quicktime video on my site, but am also looking to use the “click to play” feature. When I put the following code into a page, the editor removes the “href” tag from the <embed> code.

    <embed src="wp-content/uploads/2007/10/MovieClick.mov" scale="tofit" target="myself" pluginspage="http://www.apple.com/quicktime/download/indext.html" href="wp-content/uploads/2007/10/Movie.mov" height="256" width="320"></embed>

    This becomes:

    <embed src="wp-content/uploads/2007/10/MovieClick.mov" scale="tofit" target="myself" pluginspage="http://www.apple.com/quicktime/download/indext.html" height="256" width="320"></embed>

    …and the movie file is unlinked, and unreachable.

    Any ideas as to why this is happening, or how to fix it?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Don’t use embed. Ever. Use an object tag instead.

    <object width="320" height="256"
    classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="src" value="http://example.com/wp-content/uploads/2007/10/MovieClick.mov">
    <param name="autoplay" value="true">
    <param name="controller" value="false">
    </object>

    Thread Starter subjectego

    (@subjectego)

    I tried it like that. Two things happen.

    First, the editor changes it from this:

    <object height="256" width="320" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    
    <param name="src" value="wp-content/uploads/2007/10/MovieClick.mov"></param>
    <param name="autoplay" value="true"></param>
    <param name="controller" value="false"></param>
    
    </object>

    …over to this:

    <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="256" width="320"></object>
    
    <param name="src" value="wp-content/uploads/2007/10/MovieClick.mov"></param>
    <param name="autoplay" value="true"></param>
    <param name="controller" value="false"></param>

    Second, that somehow messes up the formatting on my site. An entire section of the site has been bumped out of where it’s supposed to be.

    Thread Starter subjectego

    (@subjectego)

    Anyone have any ideas?
    …or perhaps a list of alternative editors to TinyMCE?

    You’ll probably find that you can’t use the WYSIWYG editors to input code, because they’ll convert it.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Have you tried using the code tab to put it in instead of the visual tab?

    Thread Starter subjectego

    (@subjectego)

    I’ve been using the code tab to input code.

    you might want to try the kimili flash embed plugin. Apparently WordPress doesn’t normally like embed commands

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Well, I don’t understand it then, because using object tags like that works for me. I know that the visual editor can hork up those tags sometimes, which is why I don’t use it much.

    Thread Starter subjectego

    (@subjectego)

    I’ve discovered that the editor is very unreliable for (X)HTML tags, so I wrote a plugin to do the job for me. It’ll save me some time, and will serve as a base for solving future dilemmas.

    Thank you all for your help.

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

The topic ‘<embed> code being modified by editor’ is closed to new replies.