update oembed plugin. embed preview in editor

This commit is contained in:
fabrixxm 2011-05-22 21:56:47 +02:00 committed by Fabio Comuni
parent 3ea145fae7
commit 570a22de74
4 changed files with 81 additions and 43 deletions

View file

@ -1,10 +1,6 @@
function oembed(){
$("#oembed").toggleClass('hide');
}
function oembed_do(){
embed = "[embed]"+$('#oembed_url').attr('value')+"[/embed]";
tinyMCE.execCommand('mceInsertRawHTML',false,embed);
oembed();
var reply = prompt("$oembed_message:");
if(reply && reply.length) {
tinyMCE.execCommand('mceInsertRawHTML',false, "[embed]"+reply+"[/embed]" );
}
}