Line # Revision Author
1 8 ahitrov@rambler.ru <html>
2 <head>
3 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <style>
5 body {
6 background-color: #FFFFFF;
7 margin: 0px;
8 }
9 form {
10 margin: 0px;
11 padding: 0px;
12 }
13 input, select, textarea {
14 font-family: Tahoma, Arial, sans-serif;
15 font-size:9pt;
16 }
17 a {
18 color:#0000ee;
19 }
20 a:visited.v {
21 color:#0000ee;
22 }
23
24 fieldset {padding:6px;margin-bottom:10px;border:2px solid #8093B0;}
25 fieldset legend {font-size:8pt;font-weight:bold;font-family:Tahoma;padding:3px 6px 3px 6px;margin-bottom:6px;color:#ffffff;background-color:#8093B0;}
26
27 .tatop {font-size:70%;font-family:Tahoma;color:#ffffff;}
28 .tatop a {color:#ffffff;}
29 .npath {font-size:70%;font-family:Tahoma;padding:8px;}
30
31 .textnorm { font-size:70%; font-family:Tahoma; }
32 .input_btn {background-color:#930300;color:#FFFFFF;height:2.4em;}
33
34 table.tlistdocs { margin-top:10px; margin-bottom:10px; border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9; }
35 table.tlistdocs td, table.tlistdocs th { border:1px solid #d9d9d9; border-right:0px; border-bottom:0px; }
36 table.tlistdocs td {font-size:70%;font-family:Tahoma;}
37 table.tlistdocs table td {border:0px;}
38
39 table.tform th, table.tform td {
40 font-size: 70%;
41 font-family: Tahoma;
42 text-align: left;
43 }
44
45 th {font-size:70%;font-family:Tahoma;text-align:left;}
46
47 h5, .hdr5 {font-size:70%;font-family:Tahoma;font-weight:bold;padding-top:10px;padding-bottom:5px;}
48
49
50 .hiddensect { color:#909090; }
51 .hiddensect a { color:#909090; }
52
53 .btn {font-size:9pt;}
54
55 .bb {
56 border: solid 1px #000000;
57 }
58 .gb {
59 background-color: #D8D8D8;
60 }
61 .undo {
62 font-family: Tahoma;
63 font-size: 9pt;
64 background-color: #FFD8D8;
65 }
66 .link_string { font: 12px Tahoma; padding:5px 10px; border-bottom:1px solid gray; }
67 .link_string p { margin:0; padding:0; }
68
69 </style>
70 <title>Редакторский интерфейс<% (length($title) > 0) ? " | $title" : "" %></title>
71 22 ahitrov@rambler.ru <script language="javascript" type="text/javascript" src="/contenido/i/js/jquery-1.3.2.min.js"></script>
72 8 ahitrov@rambler.ru <% $m->comp_exists('/contenido/components/custom_head.msn') ? $m->comp('/contenido/components/custom_head.msn') : '' %>
73 <script language="javascript" type="text/javascript" src="/contenido/i/js/links.js"></script>
74 22 ahitrov@rambler.ru <script language="javascript" type="text/javascript" src="/contenido/i/js/tiny_mce/jquery.tinymce.js"></script>
75 8 ahitrov@rambler.ru <script language="javascript" type="text/javascript">
76 var WYSIWYGControls = new Array();
77 var sDocumentClass;
78 var nDocumentID;
79 22 ahitrov@rambler.ru $().ready(function() {
80 8 ahitrov@rambler.ru var sControls;
81 22 ahitrov@rambler.ru $('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 23 ahitrov@rambler.ru extended_valid_elements : "iframe[src|width|height|name|align|noresize|scrolling|frameBorder|marginWidth|marginHeight]",
101
102 22 ahitrov@rambler.ru paste_create_paragraphs : false,
103 paste_create_linebreaks : false,
104 paste_auto_cleanup_on_paste : true,
105 paste_convert_middot_lists : false,
106
107 // Example content CSS (should be your site CSS)
108 //content_css : "css/content.css",
109
110 // Drop lists for link/image/media/template dialogs
111 //template_external_list_url : "lists/template_list.js",
112 //external_link_list_url : "lists/link_list.js",
113 //external_image_list_url : "lists/image_list.js",
114 //media_external_list_url : "lists/media_list.js"
115 external_image_list_url : "/contenido/image_list.js?class=" + sDocumentClass + "&id=" + nDocumentID
116
117 });
118 <%doc>
119 8 ahitrov@rambler.ru if ( WYSIWYGControls.length ) {
120 sControls = WYSIWYGControls.join(',');
121 22 ahitrov@rambler.ru $('textarea.tinymce').tinymce({
122 // Location of TinyMCE script
123 script_url : '/contenido/i/js/tiny_mce/tiny_mce.js',
124
125 8 ahitrov@rambler.ru theme : "advanced",
126 plugins : "safari,paste,advimage,table",
127 paste_create_paragraphs : false,
128 paste_create_linebreaks : false,
129 paste_use_dialog : true,
130 paste_auto_cleanup_on_paste : true,
131 paste_convert_middot_lists : false,
132 paste_unindented_list_class : "unindentedList",
133 paste_convert_headers_to_strong : true,
134 paste_insert_word_content_callback : "convertWord",
135 theme_advanced_buttons3_add : "pastetext,pasteword,selectall,|,forecolor,backcolor,|,tablecontrols",
136 convert_urls : false,
137
138 external_image_list_url : "/contenido/image_list.js?class=" + sDocumentClass + "&id=" + nDocumentID
139 });
140 }
141 22 ahitrov@rambler.ru </%doc>
142 });
143 <%doc>
144 8 ahitrov@rambler.ru function convertWord(type, content) {
145 switch (type) {
146 // Gets executed before the built in logic performes it's cleanups
147 case "before":
148 //content = content.toLowerCase(); // Some dummy logic
149 break;
150
151 // Gets executed after the built in logic performes it's cleanups
152 case "after":
153 //content = content.toLowerCase(); // Some dummy logic
154 break;
155 }
156
157 return content;
158 }
159 22 ahitrov@rambler.ru </%doc>
160 8 ahitrov@rambler.ru
161 </script>
162 </head>
163 <body>
164
165 <%args>
166
167 $style => undef
168 $title => undef
169
170 </%args>
171 <%init>
172 my $pn = $state->project_name();
173 my ($pn_name, $pn_domen) = split(/\./, $pn);
174 </%init>