1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
google.load("jquery", "1", {uncompressed:true});
google.load("jqueryui", "1");
google.setOnLoadCallback(function(){
$(function(){
$('textarea.tinymce').tinymce({
// Location of TinyMCE script
script_url : 'global/js/tinymce/jscripts/tiny_mce/tiny_mce.js',
mode : "textareas",
theme : "advanced",
language: "en",
width: "100%",
height: "220px",
plugins : "inlinepopups,style,advimage,advlink,media,visualchars,xhtmlxtras,safari,template",
theme_advanced_buttons1 : "bold,italic,underline,|,fontsizeselect,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,link,unlink,image,|,forecolor,|,charmap,media",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_path : false,
theme_advanced_resizing : true,
theme_advanced_resizing_use_cookie : false,
theme_advanced_resizing_max_width : "55%",
extended_valid_elements : "a[name|href|target|title],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
force_br_newlines : true,
cleanup: true,
cleanup_on_startup: true,
force_p_newlines : false,
convert_newlines_to_brs : false,
forced_root_block : false
});
});
}); |
Partager