aboutsummaryrefslogtreecommitdiffstats
path: root/addon/oembed/oembed.js
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-26 13:59:20 -0800
committerFriendika <info@friendika.com>2011-01-26 13:59:20 -0800
commit05350082fab123a1ba01340d3fef95f4edf6fb5b (patch)
tree82c1a04931b1942a2067d2cf60a26f96e127306c /addon/oembed/oembed.js
parentc3691b3331d4aa26ff7fb1294b7ef5218aa241ec (diff)
parent43be72297a281b41e7b77ba6078aeb48ee007299 (diff)
downloadvolse-hubzilla-05350082fab123a1ba01340d3fef95f4edf6fb5b.tar.gz
volse-hubzilla-05350082fab123a1ba01340d3fef95f4edf6fb5b.tar.bz2
volse-hubzilla-05350082fab123a1ba01340d3fef95f4edf6fb5b.zip
Merge branch 'oembed' of https://github.com/fabrixxm/friendika into fabrixxm-oembed
Diffstat (limited to 'addon/oembed/oembed.js')
-rw-r--r--addon/oembed/oembed.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/addon/oembed/oembed.js b/addon/oembed/oembed.js
new file mode 100644
index 000000000..54547a86e
--- /dev/null
+++ b/addon/oembed/oembed.js
@@ -0,0 +1,10 @@
+function oembed(){
+ $("#oembed").toggleClass('hide');
+}
+
+function oembed_do(){
+ embed = "[embed]"+$('#oembed_url').attr('value')+"[/embed]";
+
+ tinyMCE.execCommand('mceInsertRawHTML',false,embed);
+ oembed();
+}