Changeset 1837 in ExiteCMS


Ignore:
Timestamp:
10/09/08 12:07:40 (3 years ago)
Author:
hverton
Message:

fixed issue with the loading of the editors

Location:
themes/PLi-Fusion
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • themes/PLi-Fusion/PLiTheme/php-files/themes/PLiTheme/templates/templates/_header.tpl

    r1770 r1837  
    3737    <script type='text/javascript' src='{$smarty.const.INCLUDES}jscripts/core_functions.js'></script> 
    3838    {if $smarty.const.LOAD_TINYMCE} 
    39         <script type='text/javascript' src='{$smarty.const.TINY_MCE}tiny_mce.js'></script> 
    40         {literal} 
    41         <script type='text/javascript'> 
    42         function advanced() { 
    43             tinyMCE.init({ 
    44             mode:'textareas', 
    45             editor_deselector:'textbox', 
    46             theme:'advanced', 
    47             language:'{/literal}{$settings.tinyMCE_locale}{literal}', 
    48             entities:'34,quot,38,amp,60,lt,62,gt', 
    49             document_base_url:'{/literal}{$settings.siteurl}{literal}', 
    50             relative_urls:true, 
    51             apply_source_formatting:false, 
    52             inline_styles:true, 
    53             convert_newlines_to_brs:false, 
    54             convert_fonts_to_spans:true, 
    55             force_br_newlines:false, 
    56             force_p_newlines:false, 
    57             remove_linebreaks:false, 
    58             forced_root_block:'', 
    59             fix_list_elements:false, 
    60             fix_table_elements:true, 
    61             fix_nesting:false, 
    62             cleanup:true, 
    63             cleanup_on_startup:false, 
    64             plugins : "style,layer,table,save,advhr,advimage,ibrowser,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras", 
    65             theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", 
    66             theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,|,image,ibrowser,cleanup,help,code,|,forecolor,backcolor", 
    67             theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,advhr,|,ltr,rtl,|,fullscreen", 
    68             theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,|,insertdate,inserttime", 
    69             theme_advanced_toolbar_location:'bottom', 
    70             theme_advanced_toolbar_align:'center', 
    71             theme_advanced_path_location:'none', 
    72             theme_advanced_toolbar_location:'top', 
    73             content_css:'{/literal}{$smarty.const.THEME}{literal}editor_content.css', 
    74             external_image_list_url:'{/literal}{$smarty.const.IMAGES}{literal}imagelist.js', 
    75             plugin_insertdate_dateFormat:'%d-%m-%Y', 
    76             plugin_insertdate_timeFormat:'%H:%M:%S', 
    77             invalid_elements:'script,object,applet,iframe', 
    78             extended_valid_elements:'a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]' 
    79             }); 
    80         } 
    81          
    82         function showtiny(EditorID) { 
    83             tinyMCE.removeMCEControl(tinyMCE.getEditorId(EditorID)); 
    84             tinyMCE.addMCEControl(document.getElementById(EditorID),EditorID); 
    85         } 
    86          
    87         function hidetiny(EditorID) { 
    88             tinyMCE.removeMCEControl(tinyMCE.getEditorId(EditorID)); 
    89         } 
    90         </script> 
    91         {/literal} 
     39        {include file="_load_tinymce.tpl"} 
     40    {/if} 
     41    {if $smarty.const.LOAD_HOTEDITOR} 
     42        {include file="_load_hoteditor.tpl"} 
    9243    {/if} 
    9344</head> 
  • themes/PLi-Fusion/PLiThemeCentered/php-files/themes/PLiThemeCentered/templates/templates/_header.tpl

    r1770 r1837  
    3737    <script type='text/javascript' src='{$smarty.const.INCLUDES}jscripts/core_functions.js'></script> 
    3838    {if $smarty.const.LOAD_TINYMCE} 
    39         <script type='text/javascript' src='{$smarty.const.TINY_MCE}tiny_mce.js'></script> 
    40         {literal} 
    41         <script type='text/javascript'> 
    42         function advanced() { 
    43             tinyMCE.init({ 
    44             mode:'textareas', 
    45             editor_deselector:'textbox', 
    46             theme:'advanced', 
    47             language:'{/literal}{$settings.tinyMCE_locale}{literal}', 
    48             entities:'34,quot,38,amp,60,lt,62,gt', 
    49             document_base_url:'{/literal}{$settings.siteurl}{literal}', 
    50             relative_urls:true, 
    51             apply_source_formatting:false, 
    52             inline_styles:true, 
    53             convert_newlines_to_brs:false, 
    54             convert_fonts_to_spans:true, 
    55             force_br_newlines:false, 
    56             force_p_newlines:false, 
    57             remove_linebreaks:false, 
    58             forced_root_block:'', 
    59             fix_list_elements:false, 
    60             fix_table_elements:true, 
    61             fix_nesting:false, 
    62             cleanup:true, 
    63             cleanup_on_startup:false, 
    64             plugins : "style,layer,table,save,advhr,advimage,ibrowser,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras", 
    65             theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", 
    66             theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,|,image,ibrowser,cleanup,help,code,|,forecolor,backcolor", 
    67             theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,advhr,|,ltr,rtl,|,fullscreen", 
    68             theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,|,insertdate,inserttime", 
    69             theme_advanced_toolbar_location:'bottom', 
    70             theme_advanced_toolbar_align:'center', 
    71             theme_advanced_path_location:'none', 
    72             theme_advanced_toolbar_location:'top', 
    73             content_css:'{/literal}{$smarty.const.THEME}{literal}editor_content.css', 
    74             external_image_list_url:'{/literal}{$smarty.const.IMAGES}{literal}imagelist.js', 
    75             plugin_insertdate_dateFormat:'%d-%m-%Y', 
    76             plugin_insertdate_timeFormat:'%H:%M:%S', 
    77             invalid_elements:'script,object,applet,iframe', 
    78             extended_valid_elements:'a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]' 
    79             }); 
    80         } 
    81          
    82         function showtiny(EditorID) { 
    83             tinyMCE.removeMCEControl(tinyMCE.getEditorId(EditorID)); 
    84             tinyMCE.addMCEControl(document.getElementById(EditorID),EditorID); 
    85         } 
    86          
    87         function hidetiny(EditorID) { 
    88             tinyMCE.removeMCEControl(tinyMCE.getEditorId(EditorID)); 
    89         } 
    90         </script> 
    91         {/literal} 
     39        {include file="_load_tinymce.tpl"} 
     40    {/if} 
     41    {if $smarty.const.LOAD_HOTEDITOR} 
     42        {include file="_load_hoteditor.tpl"} 
    9243    {/if} 
    9344</head> 
  • themes/PLi-Fusion/PLiXmas/php-files/themes/PLiXmas/templates/templates/_header.tpl

    r1770 r1837  
    3737    <script type='text/javascript' src='{$smarty.const.INCLUDES}jscripts/core_functions.js'></script> 
    3838    {if $smarty.const.LOAD_TINYMCE} 
    39         <script type='text/javascript' src='{$smarty.const.TINY_MCE}tiny_mce.js'></script> 
    40         {literal} 
    41         <script type='text/javascript'> 
    42         function advanced() { 
    43             tinyMCE.init({ 
    44             mode:'textareas', 
    45             editor_deselector:'textbox', 
    46             theme:'advanced', 
    47             language:'{/literal}{$settings.tinyMCE_locale}{literal}', 
    48             entities:'34,quot,38,amp,60,lt,62,gt', 
    49             document_base_url:'{/literal}{$settings.siteurl}{literal}', 
    50             relative_urls:true, 
    51             apply_source_formatting:false, 
    52             inline_styles:true, 
    53             convert_newlines_to_brs:false, 
    54             convert_fonts_to_spans:true, 
    55             force_br_newlines:false, 
    56             force_p_newlines:false, 
    57             remove_linebreaks:false, 
    58             forced_root_block:'', 
    59             fix_list_elements:false, 
    60             fix_table_elements:true, 
    61             fix_nesting:false, 
    62             cleanup:true, 
    63             cleanup_on_startup:false, 
    64             plugins : "style,layer,table,save,advhr,advimage,ibrowser,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras", 
    65             theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", 
    66             theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,|,image,ibrowser,cleanup,help,code,|,forecolor,backcolor", 
    67             theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,advhr,|,ltr,rtl,|,fullscreen", 
    68             theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,|,insertdate,inserttime", 
    69             theme_advanced_toolbar_location:'bottom', 
    70             theme_advanced_toolbar_align:'center', 
    71             theme_advanced_path_location:'none', 
    72             theme_advanced_toolbar_location:'top', 
    73             content_css:'{/literal}{$smarty.const.THEME}{literal}editor_content.css', 
    74             external_image_list_url:'{/literal}{$smarty.const.IMAGES}{literal}imagelist.js', 
    75             plugin_insertdate_dateFormat:'%d-%m-%Y', 
    76             plugin_insertdate_timeFormat:'%H:%M:%S', 
    77             invalid_elements:'script,object,applet,iframe', 
    78             extended_valid_elements:'a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]' 
    79             }); 
    80         } 
    81          
    82         function showtiny(EditorID) { 
    83             tinyMCE.removeMCEControl(tinyMCE.getEditorId(EditorID)); 
    84             tinyMCE.addMCEControl(document.getElementById(EditorID),EditorID); 
    85         } 
    86          
    87         function hidetiny(EditorID) { 
    88             tinyMCE.removeMCEControl(tinyMCE.getEditorId(EditorID)); 
    89         } 
    90         </script> 
    91         {/literal} 
     39        {include file="_load_tinymce.tpl"} 
     40    {/if} 
     41    {if $smarty.const.LOAD_HOTEDITOR} 
     42        {include file="_load_hoteditor.tpl"} 
    9243    {/if} 
    9344</head> 
Note: See TracChangeset for help on using the changeset viewer.