Hi,
I'm trying to create an 'Insert Silverlight Video' button and form, similar to 'Insert Flash' and 'Insert Media'.
When the user clicks the button, a gallery of WMV files is brought up, as well as a couple of radio buttons and a dropdown list. When the user selects one of the WMV files, a bunch of JavaScripts are then inserted into the HTML content, similar to the following...
<script type='text/javascript' src="Silverlight/MicrosoftAjax.js"></script>
<script type='text/javascript' src="Silverlight/Silverlight.js"></script>
<script type='text/javascript' src="Silverlight/BasePlayer.js"></script>
<script type='text/javascript' src="Silverlight/PlayerStrings.js"></script>
<script type='text/javascript' src="Silverlight/player.js"></script>
<script type='text/javascript' src="Silverlight/StartPlayer.js"></script>
<div id="divPlayer_0" style="width: 350px; height: 300px;">
<script type='text/javascript'>
var player = new StartPlayer_0('FileName', 'AutoStart', 'SkinToUse');
</script>
Obviously, in order to accomodate this, we need to set EnableStripScriptTags to false. I also need to to be able to paste this content into the appropriate place in the editor, i.e. where the cursor was when the gallery was opened. Not sure how to do that. I know there's some JavaScript involved.
Also, what is the mechanism that CuteEditor uses to communicate between forms (in my case, the main editor form and the gallery that comes up when the user clicks the 'Insert Silverlight' button)?
Thanks!