X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjot-header.tpl;h=352c48647e04a0032609239b3a36a1d1b6210261;hb=98a8693e9ea86d4ee07539ee93162511edb70c12;hp=78e0151d80696c68294b14e93198966fc204e973;hpb=6368bd165612dfa1e95e8d4c99b922797bf429af;p=friendica.git diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 78e0151d80..352c48647e 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -1,32 +1,137 @@ - - - + + }); + } + + function linkdropper(event) { + var linkFound = event.dataTransfer.types.contains("text/uri-list"); + if(linkFound) + event.preventDefault(); + } + + function linkdrop(event) { + var reply = event.dataTransfer.getData("text/uri-list"); + event.target.textContent = reply; + event.preventDefault(); + if(reply && reply.length) { + reply = bin2hex(reply); + $('#profile-rotator').show(); + $.get('parse_url?binurl=' + reply, function(data) { + if (!editor) $("#profile-jot-text").val(""); + initEditor(function(){ + tinyMCE.execCommand('mceInsertRawHTML',false,data); + $('#profile-rotator').hide(); + }); + }); + } + } - \ No newline at end of file +