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