none
Embedded video code is converted to symbols

    Question

  • When I paste embedding code from any video site one of two things happen.

    1. If I past the code into the visual editing tab, the video shows up correctly. When I post it however, all non-standard English characters are escaped using "\" so this:

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


    Becomes this:

    <div class="wlWriterEditableSmartContent" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:7399a6dc-e8a7-446f-91c2-e31680046656" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"><div id="7099dd16-b351-4b6b-93b7-d0b7e7e27b82" style="margin: 0px; padding: 0px; display: inline;"><div><a href="http://www.youtube.com/watch?v=vnOyMSEWNTs&hl=en&fs=1" target="_new"><img >&lt;object width=\"425\" height=\"355\"&gt;&lt;param name=\"movie\" value=\"http://www.youtube.com/v/vnOyMSEWNTs&hl=en&fs=1&hl=en\"><\/param>&lt;embed src=\"http://www.youtube.com/v/vnOyMSEWNTs&hl=en&fs=1&hl=en\" type=\"application/x-shockwave-flash\" width=\"425\" height=\"355\"&gt;&lt;\/embed><\/object><\/div>";" alt=""></a></div></div></div>


    2. If I post the embed code into the source code editing tab, code turns from the same normal code,

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

     into this:
    &lt;object width="640" height="385"&gt;&lt;param name="movie" value="http://www.youtube.com/v/vnOyMSEWNTs&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>&lt;embed src="http://www.youtube.com/v/vnOyMSEWNTs&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"&gt;&lt;/embed>&lt;/object&gt;

    Any ideas why this is happening? Any ideas on how to fix it?

    I am using the latest download of WLW (14.0.8064.206 EN) with the MoveableType API extension of Expression Engine.

    Friday, May 15, 2009 12:23 AM

All replies

  • I'd guess that Expression Engine is doing this on purpose to disable <object> and <embed> tags, for security reasons. You might want to check with the EE developers to see if this is the case.

    I guess another question would be, does it work properly when you post from the EE web admin?
    Friday, May 15, 2009 5:11 PM
    Owner
  • I guess another question would be, does it work properly when you post from the EE web admin?
    Yeah if I post the code straight into the EE post window, it works fine.

    The idea about security is interesting, I'll have to post to their forum and see if I can get an answer.
    But on the WLW side, you can't see anything else I could do differently to change this behavior?
    Saturday, May 16, 2009 2:35 PM
  • I haven't seen a bug for this before with Windows Live Writer.  You could use a program like Fiddler to monitor the traffic between your blog and Windows Live Writer.  That way you can verify what WLW is sending, and if it is different then what comes out on the other then you know it is because of the blog service.
    -Brandon Turner [MSFT]
    Monday, May 18, 2009 10:10 PM
  • Jake,

    I am just curious if you ever resolved this. I have the same issue and just came across your post today - two years later.

    Thanks,

    Ed

    Monday, June 6, 2011 3:49 PM