Re: Custom Button Questions

  •  04-09-2008, 2:57 PM

    Re: Custom Button Questions

    Thanks Adam,
     
    That helped a lot.  Now I need to be able to paste back in to the main editor, but keep the <script> tags in place.  I'm using the code from the example:
     
    function button_click()
    {
    var editor=Window_GetDialogArguments(window);
    var ta=document.getElementById("ta");
    editor.PasteHTML(ta.value);
    }
     
    But PasteHTML is stripping out the script tags.  Unfortunately, a Silverlight video object looks like the following:
     
    <div id="SilverlightVideo1" style="background-image: url(Silverlight/GenericThumbnail.jpg); width: 260px; height: 255px">
       <script  type='text/javascript'>
            initializePlayer("MyVideo.wmv", "MyVideo_Thumb.jpg", 'Silverlight/player_blitz.xaml', true);
            var player = new StartPlayer_0("SilverlightVideo1");
       </script>
    </div>
    Is there another method I can use?  Thanks.
     
    Aaron
View Complete Thread