]> git.mxchange.org Git - friendica.git/blobdiff - view/jot-header.tpl
revup
[friendica.git] / view / jot-header.tpl
index 795267ee30d925b9e6e071b12cbd9690bae67c3d..22bd0aa5b22650bfcd76be3108bc4c4bda044a12 100644 (file)
@@ -11,6 +11,7 @@ function initEditor(cb){
                        theme : "advanced",
                        mode : "specific_textareas",
                        editor_selector: /(profile-jot-text|prvmail-text)/,
+                       auto_focus: "profile-jot-text",
                        plugins : "bbcode,paste,autoresize",
                        theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
                        theme_advanced_buttons2 : "",
@@ -79,7 +80,7 @@ function initEditor(cb){
 }
 
 </script>
-<script type="text/javascript" src="include/ajaxupload.js" ></script>
+<script type="text/javascript" src="js/ajaxupload.js" ></script>
 <script>
        var ispublic = '$ispublic';
        $(document).ready(function() {
@@ -141,20 +142,13 @@ function initEditor(cb){
                if(reply && reply.length) {
                        reply = bin2hex(reply);
                        $('#profile-rotator').show();
-                       $.get('parse_url?url=' + reply, function(data) {
+                       $.get('parse_url?binurl=' + reply, function(data) {
                                tinyMCE.execCommand('mceInsertRawHTML',false,data);
                                $('#profile-rotator').hide();
                        });
                }
        }
 
-       function jotGetVideo() {
-               reply = prompt("$utubeurl");
-               if(reply && reply.length) {
-                       tinyMCE.execCommand('mceInsertRawHTML',false,'[youtube]' + reply + '[/youtube]');
-               }
-       }
-
        function jotVideoURL() {
                reply = prompt("$vidurl");
                if(reply && reply.length) {