Ignore:
Timestamp:
09/03/10 20:21:49 (21 months ago)
Author:
mattlevine
Message:
  1. changing argument order in the jquery.ckeditor() calls.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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> 
Note: See TracChangeset for help on using the changeset viewer.