X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjot-header.tpl;h=ecf27e1b179647b0643371c88d4726f6799b6536;hb=3b33c0d075fcce7f10468ad749742950077768b3;hp=3f8fe5302f59c331604148d4d454bec1dacd0eb4;hpb=36b66dccb60a7d65724da542f9d7a2d6722fc6aa;p=friendica.git diff --git a/view/jot-header.tpl b/view/jot-header.tpl index 3f8fe5302f..ecf27e1b17 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -1,32 +1,112 @@ - - - + + function linkdrop(event) { + var reply = event.dataTransfer.getData("text/uri-list"); + event.target.textContent = reply; + event.preventDefault(); + if(reply && reply.length) { + $('#profile-rotator').show(); + $.get('parse_url?url=' + 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 +