diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2011-05-22 21:56:47 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-05-23 09:13:35 +0200 |
commit | 570a22de7425e2a486b02e3b43a4b4b1ece552af (patch) | |
tree | eb49ca1007beb339edad8b21d2f519d1a70dd576 /addon/oembed/oembed.js | |
parent | 3ea145fae7defaf959b04797afc8482bd0190352 (diff) | |
download | volse-hubzilla-570a22de7425e2a486b02e3b43a4b4b1ece552af.tar.gz volse-hubzilla-570a22de7425e2a486b02e3b43a4b4b1ece552af.tar.bz2 volse-hubzilla-570a22de7425e2a486b02e3b43a4b4b1ece552af.zip |
update oembed plugin. embed preview in editor
Diffstat (limited to 'addon/oembed/oembed.js')
-rw-r--r-- | addon/oembed/oembed.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/addon/oembed/oembed.js b/addon/oembed/oembed.js index 54547a86e..f8e957413 100644 --- a/addon/oembed/oembed.js +++ b/addon/oembed/oembed.js @@ -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]" ); + } } |