• title.msn

    480 481  
    74 74
    75 75 </style>
    76 76 <title>Редакторский интерфейс<% (length($title) > 0) ? " | $title" : "" %></title>
    77 <script language="javascript" type="text/javascript" src="/contenido/i/js/jquery-1.9.1.js"></script>
    78 <script language="javascript" type="text/javascript" src="/contenido/i/js/jquery-ui-1.10.3.custom/jquery-ui-1.10.3.custom.min.js"></script>
    77 <link rel="stylesheet" type="text/css" href="/contenido/i/js/jquery-ui-1.10.3.custom/css/flick/jquery-ui-1.10.3.custom.css" media="all" />
    78 <script language="javascript" type="text/javascript" src="/contenido/i/js/jquery-1.9.1.min.js"></script>
    79 79 <% $m->comp_exists('/contenido/components/custom_head.msn') ? $m->comp('/contenido/components/custom_head.msn') : '' %>
    80 <link rel="stylesheet" type="text/css" href="/contenido/i/js/jquery-ui-1.10.3.custom/css/flick/jquery-ui-1.10.3.custom.css" media="all" />
    81 80 <script language="javascript" type="text/javascript" src="/contenido/i/js/links.js"></script>
    82 <script language="javascript" type="text/javascript" src="/contenido/i/js/tiny_mce/jquery.tinymce.js"></script>
    81 <script language="javascript" type="text/javascript" src="/contenido/i/js/tinymce-3.5.11/jquery.tinymce.js"></script>
    82 <script language="javascript" type="text/javascript" src="/contenido/i/js/jquery-ui-1.10.3.custom/jquery-ui-1.10.3.custom.min.js"></script>
    83 % if ( @plugins ) {
    84 % foreach my $plugin ( @plugins ) {
    85 % my ($include_dir, $include_comp);
    86 % if ( $plugin eq $state->project ) {
    87 % $include_dir = $state->{mason_comp}.'/contenido/'.$plugin.'/components/';
    88 % } else {
    89 % $include_dir = $state->{plug_src}.'/'.$plugin.'/comps/contenido/'.$plugin.'/components/';
    90 % }
    91 % $include_comp = '/contenido/'.$plugin.'/components/title_inc.msn';
    92 % if ( -e $include_dir && $m->comp_exists($include_comp) ) {
    93 <& $include_comp &>
    94 % }
    95 % }
    96 % }
    83 97 <script language="javascript" type="text/javascript">
    98 <!--
    84 99 var WYSIWYGControls = new Array();
    85 100 var sDocumentClass;
    86 101 var nDocumentID;
    87 $().ready(function() {
    88 var sControls;
    102 $(document).ready(function() {
    89 103 $('textarea.tinymce').tinymce({
    90 104 // Location of TinyMCE script
    91 script_url : '/contenido/i/js/tiny_mce/tiny_mce.js',
    105 script_url : '/contenido/i/js/tinymce-3.5.11/tiny_mce.js',
    92 106
    93 107 // General options
    94 108 theme : "advanced",
    95 109 plugins : "style,layer,table,advhr,advimage,advlink,inlinepopups,preview,media,contextmenu,paste,noneditable,visualchars,nonbreaking,template,advlist",
    110 // TinyMCE 4.x
    111 //theme : "modern",
    112 //plugins : "style,layer,table,hr,image,link,code,textcolor,preview,media,contextmenu,paste,noneditable,visualchars,nonbreaking,template,advlist",
    96 113
    97 114 // Theme options
    98 115 theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect,|,forecolor,backcolor,|,undo,redo,|,preview,help,code",
     
    123 140 external_image_list_url : "/contenido/image_list.js?class=" + sDocumentClass + "&id=" + nDocumentID
    124 141
    125 142 });
    126 <%doc>
    127 if ( WYSIWYGControls.length ) {
    128 sControls = WYSIWYGControls.join(',');
    129 $('textarea.tinymce').tinymce({
    130 // Location of TinyMCE script
    131 script_url : '/contenido/i/js/tiny_mce/tiny_mce.js',
    132
    133 theme : "advanced",
    134 plugins : "safari,paste,advimage,table",
    135 paste_create_paragraphs : false,
    136 paste_create_linebreaks : false,
    137 paste_use_dialog : true,
    138 paste_auto_cleanup_on_paste : true,
    139 paste_convert_middot_lists : false,
    140 paste_unindented_list_class : "unindentedList",
    141 paste_convert_headers_to_strong : true,
    142 paste_insert_word_content_callback : "convertWord",
    143 theme_advanced_buttons3_add : "pastetext,pasteword,selectall,|,forecolor,backcolor,|,tablecontrols",
    144 convert_urls : false,
    145
    146 external_image_list_url : "/contenido/image_list.js?class=" + sDocumentClass + "&id=" + nDocumentID
    147 });
    148 }
    149 </%doc>
    150 143 });
    151 144 <%doc>
    152 145 function convertWord(type, content) {
     
    165 158 return content;
    166 159 }
    167 160 </%doc>
    168
    161 //-->
    169 162 </script>
    170 163 </head>
    171 164 <body>
     
    177 170
    178 171 </%args>
    179 172 <%init>
    173
    180 174 my $pn = $state->project_name();
    181 175 my ($pn_name, $pn_domen) = split(/\./, $pn);
    176
    177 my @plugins = ($state->project, split(/\s+/, $state->plugins));
    178
    182 179 </%init>