friendica/addon/oembed/oembed.js

11 lines
215 B
JavaScript
Raw Normal View History

2011-01-26 15:20:12 +00:00
function oembed(){
$("#oembed").toggleClass('hide');
}
function oembed_do(){
embed = "[embed]"+$('#oembed_url').attr('value')+"[/embed]";
2011-01-26 15:20:12 +00:00
tinyMCE.execCommand('mceInsertRawHTML',false,embed);
oembed();
2011-01-26 15:20:12 +00:00
}