aboutsummaryrefslogtreecommitdiffstats
path: root/view/jot-header.tpl
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-19 20:52:49 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-19 20:52:49 -0700
commitf9f284ba708c7f135931f87a922e7716a3dabb85 (patch)
treec5c1d9136125ea6ef8de56d43f4b7ea5dc3ca024 /view/jot-header.tpl
parent0ea5e7fc9572caabc97c7a9e5ae3451e956bceef (diff)
downloadvolse-hubzilla-f9f284ba708c7f135931f87a922e7716a3dabb85.tar.gz
volse-hubzilla-f9f284ba708c7f135931f87a922e7716a3dabb85.tar.bz2
volse-hubzilla-f9f284ba708c7f135931f87a922e7716a3dabb85.zip
share youtube videos
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r--view/jot-header.tpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index 22e425463..b13a324bb 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -73,6 +73,13 @@ tinyMCE.init({
}
}
+ function jotGetVideo() {
+ reply = prompt("Please enter a YouTube link:");
+ if(reply && reply.length) {
+ tinyMCE.execCommand('mceInsertRawHTML',false,'[youtube]' + reply + '[/youtube]');
+ }
+ }
+
function linkdropper(event) {
var linkFound = event.dataTransfer.types.contains("text/uri-list");
if(linkFound)