mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:50:12 +00:00
update oembed plugin. embed preview in editor
This commit is contained in:
parent
3ea145fae7
commit
570a22de74
4 changed files with 81 additions and 43 deletions
|
@ -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]" );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue