Creating a YouTube Embedder Editor Plugin

Vote:
 

Hi, I have created a plugin which lets the editors embed a youtube clip in the editor and are having some troubles.

I created the plugin this way; I've created a tool to the editor that opens an aspx in an dialog in which the user enters the url of the youtube clip and the aspx returns the embed-html...

Like this;

...

       var range = plugin.editorDocument.selection.createRange();

        var embedHtml = OpenDialog(dialogUrl, null, 400, 200);
        
        if (!embedHtml) {
            return;
        }
        range.pasteHTML(embedHtml);

...

The problem is that my <param> tags gets removed when i pasteHTML... I've read on various forums that this is because of a "feature" in IE:s "pasteHTML"..  Have anyone done an editorplugin like this and having solved this?

Btw, this in in EPiServer 4.61 :)

#38658
Apr 16, 2010 15:41
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.