views:

571

answers:

1

Hi all, currently i am working on few tinymce plugins. in one of my plugin insert to embed flash swf. but it didn't work perfectly. its change the embed tag.

here is the code:

function insertMp3() {

    var v = document.getElementById('codebase').value+document.getElementById('file').value
    var html ="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='200' height='20' id='dewplayer' align='middle'><param name='wmode' value='transparent' /><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='dewplayer.swf?mp3="+v+"' /><param name='quality' value='high' /><param name='bgcolor' value='FFFFFF' /><embed src='dewplayer.swf?mp3="+v+"' quality='high' bgcolor='FFFFFF' width='200' height='20' name='dewplayer' wmode='transparent' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'&gt;&lt;/embed&gt;&lt;/object&gt;";

    tinyMCE.execCommand('mceInsertContent', false, html);
    tinyMCEPopup.close();

}

please help

A: 

can you confirm what error(s) you are actually seeing - if any. Its hard to identify what the issue is when all you have said is that it "didnt work perfectly"

seengee