aboutsummaryrefslogtreecommitdiffstats
path: root/addon/oembed/oembed.js
blob: 54547a86eca74c445f9c82dfd29a09eb420282d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
function oembed(){
  $("#oembed").toggleClass('hide');
}

function oembed_do(){
  embed = "[embed]"+$('#oembed_url').attr('value')+"[/embed]";
  
  tinyMCE.execCommand('mceInsertRawHTML',false,embed);
  oembed();
}