Changeset 2757


Ignore:
Timestamp:
09/03/10 20:21:49 (17 months ago)
Author:
mattlevine
Message:
  1. changing argument order in the jquery.ckeditor() calls.
Location:
branches/5.2.1/www/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2.1/www/admin/js/admin.js

    r2745 r2757  
    631631                                }  
    632632                                         
    633                                 jQuery('#' + allPageTags[i].id).ckeditor(htmlEditorOnComplete,getHTMLEditorConfig()); 
     633                                jQuery('#' + allPageTags[i].id).ckeditor(getHTMLEditorConfig(),htmlEditorOnComplete); 
    634634                                 
    635635                        } 
  • branches/5.2.1/www/admin/view/vArchitecture/ajax/dsp_javascript.cfm

    r2681 r2757  
    7878                oFCKeditor.ReplaceTextarea(); 
    7979             <cfelse> 
    80                 jQuery('##summary').ckeditor(htmlEditorOnComplete,{ 
     80                jQuery('##summary').ckeditor({ 
    8181                        toolbar: 'Summary', 
    8282                        contentsCss: '#application.settingsManager.getSite(attributes.siteid).getThemeAssetPath()#/css/editor.css', 
    8383                                defaultLanguage: '#lcase(session.rb)#', 
    8484                                width: '100%' 
    85                         } 
     85                        }, 
     86                        htmlEditorOnComplete 
    8687                ); 
    8788                summaryLoaded=true; 
  • branches/5.2.1/www/admin/view/vArchitecture/form/dsp_tab_basic.cfm

    r2684 r2757  
    129129                } 
    130130                </script> 
    131                         <div class="message"><input type="button" name="Count" value="#application.rbFactory.getKeyValue(session.rb,'sitemanager.content.fields.showcontentlength')#" onclick="alertDialog(FCKeditorAPI.GetInstance('body').GetXHTML().length + ' #jsStringFormat(application.rbFactory.getKeyValue(session.rb,'sitemanager.content.fields.characters'))#'); "> #application.rbFactory.getKeyValue(session.rb,'sitemanager.content.fields.maxcharacters')#</div> 
    132131        <cfelse> 
    133132                <textarea name="body" id="body">#HTMLEditFormat(request.contentBean.getBody())#</textarea> 
    134133                <script type="text/javascript" language="Javascript"> 
    135134                var loadEditorCount = 0; 
    136                 jQuery('##body').ckeditor(htmlEditorOnComplete,{ 
    137                         toolbar:<cfif attributes.type eq 'Form'>'Form'<cfelse>'Default'</cfif>, 
    138                         contentsCss: '#application.settingsManager.getSite(attributes.siteid).getThemeAssetPath()#/css/editor.css', 
    139                         defaultLanguage: '#lcase(session.rb)#', 
    140                         width: '100%', 
    141                         height: '550', 
    142                         <cfif len(application.settingsManager.getSite(attributes.siteID).getGoogleAPIKey())> 
    143                         GoogleMaps_Key: '#application.settingsManager.getSite(attributes.siteID).getGoogleAPIKey()#' 
    144                         <cfelse> 
    145                         GoogleMaps_Key :'none' 
    146                         </cfif> 
    147                         <cfif fileExists("#expandPath(application.settingsManager.getSite(attributes.siteid).getThemeIncludePath())#/js/ckconfig.js.cfm")> 
     135                 
     136                jQuery(function() 
    148137                        { 
    149                         ,customConfig:'#application.settingsManager.getSite(attributes.siteid).getThemeAssetPath()#/js/ckeditor.js.cfm?EditorType=#attributes.type#'; 
    150                         </cfif> 
    151                         } 
    152                 ); 
     138                                var config = { 
     139                                                toolbar:<cfif attributes.type eq 'Form'>'Form'<cfelse>'Default'</cfif>, 
     140                                                contentsCss: '#application.settingsManager.getSite(attributes.siteid).getThemeAssetPath()#/css/editor.css', 
     141                                                defaultLanguage: '#lcase(session.rb)#', 
     142                                                width: '100%', 
     143                                                height: '550', 
     144                                                <cfif len(application.settingsManager.getSite(attributes.siteID).getGoogleAPIKey())> 
     145                                                GoogleMaps_Key: '#application.settingsManager.getSite(attributes.siteID).getGoogleAPIKey()#' 
     146                                                <cfelse> 
     147                                                GoogleMaps_Key :'none' 
     148                                                </cfif> 
     149                                                <cfif fileExists("#expandPath(application.settingsManager.getSite(attributes.siteid).getThemeIncludePath())#/js/ckconfig.js.cfm")> 
     150                                                ,customConfig:'#application.settingsManager.getSite(attributes.siteid).getThemeAssetPath()#/js/ckeditor.js.cfm?EditorType=#attributes.type#'; 
     151                                                </cfif> 
     152                                                }; 
     153 
     154                                jQuery('##body').ckeditor(config,htmlEditorOnComplete); 
     155                        }); 
    153156                </script> 
    154157        </cfif> 
  • branches/5.2.1/www/admin/view/vEmail_Broadcaster/dsp_form.cfm

    r2729 r2757  
    143143                <script type="text/javascript" language="Javascript"> 
    144144                var loadEditorCount = 0; 
    145                 jQuery('##bodyHTML').ckeditor(htmlEditorOnComplete,{ 
     145                jQuery('##bodyHTML').ckeditor({ 
    146146                        toolbar:'Default', 
    147147                        contentsCss: '#application.settingsManager.getSite(attributes.siteid).getThemeAssetPath()#/css/editor_email.css', 
     
    149149                        width: '100%', 
    150150                        height: '400' 
    151                         } 
     151                        }, 
     152                        htmlEditorOnComplete 
    152153                ); 
    153154                </script> 
Note: See TracChangeset for help on using the changeset viewer.