- Timestamp:
- 09/03/10 20:21:49 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2.1/www/admin/view/vArchitecture/form/dsp_tab_basic.cfm
r2684 r2757 129 129 } 130 130 </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>132 131 <cfelse> 133 132 <textarea name="body" id="body">#HTMLEditFormat(request.contentBean.getBody())#</textarea> 134 133 <script type="text/javascript" language="Javascript"> 135 134 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() 148 137 { 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 }); 153 156 </script> 154 157 </cfif>
Note: See TracChangeset
for help on using the changeset viewer.
