]> git.mxchange.org Git - friendica.git/blob - view/jot-header.tpl
3a1d0a2ae4f5e0db0920e9fb1882f0f92213bcb7
[friendica.git] / view / jot-header.tpl
1
2 <script language="javascript" type="text/javascript"
3           src="$baseurl/tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
4           <script language="javascript" type="text/javascript">
5
6 tinyMCE.init({
7         theme : "advanced",
8         mode : "specific_textareas",
9         editor_selector: "profile-jot-text",
10         plugins : "bbcode",
11         theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor",
12         theme_advanced_buttons2 : "",
13         theme_advanced_buttons3 : "",
14         theme_advanced_toolbar_location : "top",
15         theme_advanced_toolbar_align : "center",
16         theme_advanced_styles : "Code=codeStyle;Quote=quoteStyle",
17         content_css : "bbcode.css",
18         entity_encoding : "raw",
19         add_unload_trigger : false,
20         remove_linebreaks : false,
21         content_css: "$baseurl/view/custom_tinymce.css"
22 });
23
24 </script>
25 <script type="text/javascript" src="include/ajaxupload.js" ></script>
26 <script>
27         $(document).ready(function() {
28                 var uploader = new window.AjaxUpload(
29                         'wall-image-upload',
30                         { action: 'wall_upload',
31                                 name: 'userfile',
32                                 onSubmit: function(file,ext) { $('#profile-rotator').show(); },
33                                 onComplete: function(file,response) {
34                                         tinyMCE.execCommand('mceInsertRawHTML',false,response);
35                                         $('#profile-rotator').hide();
36                                 }                                
37                         }
38                 );
39
40         });
41
42
43         function jotGetLink() {
44                 reply = prompt("Please enter a link URL:");
45                 if(reply && reply.length) {
46                         $('#profile-rotator').show();
47                         $.get('parse_url?url=' + reply, function(data) {
48                                 tinyMCE.execCommand('mceInsertRawHTML',false,data);
49                                 $('#profile-rotator').hide();
50                         });
51                 }
52         }
53
54
55
56
57 </script>
58
59 <!--
60
61         relative_urls: false,
62         document_base_url : "$baseurl/",
63          external_image_list_url : "$baseurl/include/imagelist-js.php",
64          content_css : "$baseurl/view/tiny.css"
65
66 });
67 </script>
68 -->