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'></embed></object>";
tinyMCE.execCommand('mceInsertContent', false, html);
tinyMCEPopup.close();
}
please help