1 2 3 4 5 6
function oembed(){ var reply = prompt("$oembed_message:"); if(reply && reply.length) { tinyMCE.execCommand('mceInsertRawHTML',false, "[embed]"+reply+"[/embed]" ); } }