Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Problem when insert silverlight into a wysiwyg editor RSS

1 reply

Last post Jul 23, 2008 03:37 AM by Allen Chen – MSFT

(0)
  • apoclast

    apoclast

    0 Points

    1 Post

    Problem when insert silverlight into a wysiwyg editor

    Jul 21, 2008 05:23 AM | LINK

    I want to make a extension for a wysiwyg editor which can insert a silverlight object into the html document. But I found that it's impossible and should be a bug.... 

    here is the code I want to insert: 

    <object type="application/x-silverlight-2-b2" width="320" height="240" data="data:application/x-silverlight,">
    <param name="source" value="http://127.0.0.1/tools/Silverlight/SilverPlayer.xap" />
    <param name="onerror" value="alert('error')" />
    <param name="background" value="#ececec" />
    <param name="InitParams" value="a=b" />
    <a href="http://go.microsoft.com/fwlink/?LinkID=115261" style="text-decoration: none;"><img src=http://go.microsoft.com/fwlink/?LinkId=108181 alt="Get Microsoft Silverlight" style="border-style: none" /></a>
    </object>

    But actually the code I got is:

    <OBJECT type=application/x-silverlight-2-b2 height=240 width=320 data=data:application/x-oleobject;base64,QfXq3+HzJEysrJnDBxUISgAIAAATIQAAzhgAABAAAAAjAGUAYwBlAGMAZQBjAAAAAAAAAAAAAABoAAAAaAB0AHQAcAA6AC8ALwAxADIANwAuADAALgAwAC4AMQAvAHQAbwBvAGwAcwAvAFMAaQBsAHYAZQByAGwAaQBnAGgAdAAvAFMAaQBsAHYAZQByAFAAbABhAHkAZQByAC4AeABhAHAAAAA8AAAAAAAAAB4AAABhAGwAZQByAHQAKAAnAGUAcgByAG8AcgAnACkAAAAAAAAAAAAAAAAAAAAIAAAAYQA9AGIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==><a href="http://go.microsoft.com/fwlink/?LinkID=115261" style="text-decoration: none;"><img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/></a></OBJECT>

    I don't know where these base64 chars come from.

    I'm not sure it is a bug but I think it worth telling.

    Thanks 
  • Allen Chen – MSFT

    Allen Chen –...

    Star

    13897 Points

    1809 Posts

    Microsoft

    Re: Problem when insert silverlight into a wysiwyg editor

    Jul 23, 2008 03:37 AM | LINK

    Hi

    Could you tell us what's that wysiwyg editor? From your description it's not a Silverlight problem. I think it would be better if you ask this question in forums about that editor.

    Sincerely,
    Allen Chen
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.