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>
7 console.log(typeof tinyMCE);
8 if(typeof tinyMCE == "undefined") {
10 window.tinyMCEPreInit = {
12 base: baseurl+"/library/tinymce/jscripts/tiny_mce/",
16 $.getScript(baseurl +"/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js", function(){
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 : '',
36 content_css: baseurl+"/view/custom_tinymce.css",
37 theme_advanced_path : false,