petites modifications pour l'affichage
[mtweb] / mw / app / out / default / views / tinymce.init.js.php
1 <script type="text/javascript">
2
3         tinyMCE.init({\r
4                 // General options
5                 mode : "none",\r
6                 theme : "advanced",\r
7                 plugins : "pagebreak,style,layer,table,advhr,advimage,advlink,iespell,inlinepopups,media,searchreplace,print,contextmenu,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist",\r
8 \r
9                 // Theme options\r
10                 theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontsizeselect",\r
11                 theme_advanced_buttons2 : "bullist,numlist,|blockquote,|,link,unlink,anchor,image,cleanup,help,|,hr,charmap,|,forecolor,backcolor",\r
12                 theme_advanced_buttons3 : "",
13                 theme_advanced_toolbar_location : "top",\r
14                 theme_advanced_toolbar_align : "left",\r
15                 theme_advanced_statusbar_location : "bottom",\r
16                 theme_advanced_resizing : true,\r
17 \r
18                 // Example content CSS (should be your site CSS)\r
19     <?php if($this->out_file_exists("css/tinymce.css")) : ?>
20     content_css : "<?php echo $this->out_url("css/tinymce.css"); ?>",
21     <?php endif; ?>\r
22 \r
23                 // Drop lists for link/image/media/template dialogs\r
24 //              template_external_list_url : "lists/template_list.js",\r
25 //              external_link_list_url : "lists/link_list.js",\r
26 //              external_image_list_url : "lists/image_list.js",\r
27 //              media_external_list_url : "lists/media_list.js",\r
28
29       file_browser_callback : "tinyBrowser",
30
31       invalid_elements : "script",
32 \r
33                 // Style formats\r
34                 style_formats : [\r
35                         {title : 'Bold text', inline : 'b'},\r
36                         {title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},\r
37                         {title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},\r
38                         {title : 'Example 1', inline : 'span', classes : 'example1'},\r
39                         {title : 'Example 2', inline : 'span', classes : 'example2'},\r
40                         {title : 'Table styles'},\r
41                         {title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}\r
42                 ],\r
43 \r
44                 // Replace values for the template plugin\r
45                 template_replace_values : {\r
46                         username : "Some User",\r
47                         staffid : "991234"\r
48                 }\r
49         });
50
51 </script>