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
| tinyMCE.init(
{
entity_encoding : 'raw',
// General options
mode : "textareas",
theme : "advanced",
skin : "o2k7",
language : 'fr',
plugins : "table,preview,insertdatetime,advimage,print",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,|,forecolor,backcolor,|,justifyleft,justifycenter,justifycenter,justifyfull,bullist,numlist,|outdent,indent,cut,copy,paste,|,table,insertdate,image,undo,redo,cleanup,sub,sup,charmap,print,preview",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_source_editor_width : 698,
theme_advanced_resizing_max_height : 350,
theme_advanced_resizing_min_width : 698,
theme_advanced_resizing_max_width : 698,
force_br_newlines : true, //Les trois variables qui suivent sont necessaires pour faire du code html propre
force_p_newlines : false, //Donc un saut de ligne = <br /> et non pas <p>
forced_root_block : '',
height:"300px",
width:"698px"
}
); |
Partager