friendica-addons/oembed/oembed.js
2011-09-25 01:56:03 -07:00

6 lines
175 B
JavaScript

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