-
title.msn
21 22 68 68 69 69 </style> 70 70 <title>Редакторский интерфейс<% (length($title) > 0) ? " | $title" : "" %></title> 71 <script language="javascript" type="text/javascript" src="/contenido/i/js/jquery-1.3.2.min.js"></script> 71 72 <% $m->comp_exists('/contenido/components/custom_head.msn') ? $m->comp('/contenido/components/custom_head.msn') : '' %> 72 73 <script language="javascript" type="text/javascript" src="/contenido/i/js/links.js"></script> 73 <script language="javascript" type="text/javascript" src="/contenido/i/js/tiny_mce/tiny_mce.js"></script> 74 <script language="javascript" type="text/javascript" src="/contenido/i/js/tiny_mce/jquery.tinymce.js"></script> 74 75 <script language="javascript" type="text/javascript"> 75 76 var WYSIWYGControls = new Array(); 76 77 var sDocumentClass; 77 78 var nDocumentID; 78 window.onload = function() 79 { 79 $().ready(function() { 80 80 var sControls; 81 $('textarea.tinymce').tinymce({ 82 // Location of TinyMCE script 83 script_url : '/contenido/i/js/tiny_mce/tiny_mce.js', 84 85 // General options 86 theme : "advanced", 87 plugins : "style,layer,table,advhr,advimage,advlink,inlinepopups,preview,media,contextmenu,paste,noneditable,visualchars,nonbreaking,template,advlist", 88 89 // Theme options 90 theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect,|,forecolor,backcolor,|,undo,redo,|,preview,help,code", 91 theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink,anchor,image,|,tablecontrols", 92 theme_advanced_buttons3 : "cleanup,removeformat,visualaid,|,sub,sup,|,charmap,media,hr,advhr,|,insertlayer,moveforward,movebackward,absolute,|,styleprops,|,visualchars,nonbreaking", 93 theme_advanced_toolbar_location : "top", 94 theme_advanced_toolbar_align : "left", 95 theme_advanced_statusbar_location : "bottom", 96 theme_advanced_resizing : true, 97 98 convert_urls : false, 99 100 paste_create_paragraphs : false, 101 paste_create_linebreaks : false, 102 paste_auto_cleanup_on_paste : true, 103 paste_convert_middot_lists : false, 104 105 // Example content CSS (should be your site CSS) 106 //content_css : "css/content.css", 107 108 // Drop lists for link/image/media/template dialogs 109 //template_external_list_url : "lists/template_list.js", 110 //external_link_list_url : "lists/link_list.js", 111 //external_image_list_url : "lists/image_list.js", 112 //media_external_list_url : "lists/media_list.js" 113 external_image_list_url : "/contenido/image_list.js?class=" + sDocumentClass + "&id=" + nDocumentID 114 115 }); 116 <%doc> 81 117 if ( WYSIWYGControls.length ) { 82 118 sControls = WYSIWYGControls.join(','); 83 tinyMCE.init({ 119 $('textarea.tinymce').tinymce({ 120 // Location of TinyMCE script 121 script_url : '/contenido/i/js/tiny_mce/tiny_mce.js', 122 84 123 theme : "advanced", 85 124 plugins : "safari,paste,advimage,table", 86 125 paste_create_paragraphs : false, … … 92 131 paste_convert_headers_to_strong : true, 93 132 paste_insert_word_content_callback : "convertWord", 94 133 theme_advanced_buttons3_add : "pastetext,pasteword,selectall,|,forecolor,backcolor,|,tablecontrols", 95 mode : "exact", 96 elements : sControls, 97 134 convert_urls : false, 98 135 99 136 external_image_list_url : "/contenido/image_list.js?class=" + sDocumentClass + "&id=" + nDocumentID 100 137 }); 101 138 } 102 } 139 </%doc> 140 }); 141 <%doc> 103 142 function convertWord(type, content) { 104 143 switch (type) { 105 144 // Gets executed before the built in logic performes it's cleanups … … 115 154 116 155 return content; 117 156 } 157 </%doc> 118 158 119 159 </script> 120 160 </head>