]> git.mxchange.org Git - friendica.git/blob - view/field_richtext.tpl
add site info to site json response
[friendica.git] / view / field_richtext.tpl
1         
2         <div class='field richtext'>
3                 <label for='id_$field.0'>$field.1</label>
4                 <textarea name='$field.0' id='id_$field.0' class="fieldRichtext">$field.2</textarea>
5                 <span class='field_help'>$field.3</span>
6                 <script>
7                         console.log(typeof tinyMCE);
8                         if(typeof tinyMCE == "undefined") {
9                                 tinyMCE="loading";
10                                 window.tinyMCEPreInit = {
11                                         suffix:"",
12                                         base: baseurl+"/library/tinymce/jscripts/tiny_mce/",
13                                         query:"",
14                                 };
15                                 $(function(){
16                                         $.getScript(baseurl     +"/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js", function(){
17                                                 tinyMCE.init({
18                                                         theme : "advanced",
19                                                         mode : "specific_textareas",
20                                                         editor_selector: "fieldRichtext",
21                                                         plugins : "bbcode,paste",
22                                                         theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
23                                                         theme_advanced_buttons2 : "",
24                                                         theme_advanced_buttons3 : "",
25                                                         theme_advanced_toolbar_location : "top",
26                                                         theme_advanced_toolbar_align : "center",
27                                                         theme_advanced_blockformats : "blockquote,code",
28                                                         paste_text_sticky : true,
29                                                         entity_encoding : "raw",
30                                                         add_unload_trigger : false,
31                                                         remove_linebreaks : false,
32                                                         force_p_newlines : false,
33                                                         force_br_newlines : true,
34                                                         forced_root_block : '',
35                                                         convert_urls: false,
36                                                         content_css: baseurl+"/view/custom_tinymce.css",
37                                                         theme_advanced_path : false,
38                                                 });
39                                         });
40                                 });
41                         }
42                 </script>
43                 
44         </div>