diff options
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r-- | view/jot-header.tpl | 7 |
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) |