fckEditor = createObject("component", "/#application.configBean.getMapDir()#/fckeditor");
fckEditor.instanceName = "body";
fckEditor.value = '#request.contentBean.getBody()#';
fckEditor.basePath = "#application.configBean.getContext()#/fckeditor/";
fckEditor.config.EditorAreaCSS = '#application.configBean.getContext()#/#attributes.siteid#/css/editor.css';
fckEditor.config.StylesXmlPath = '#application.configBean.getContext()#/#attributes.siteid#/css/fckstyles.xml';
fckEditor.width = "100%";
fckEditor.height = 550;
fckEditor.config.DefaultLanguage=lcase(session.rb);
fckEditor.config.AutoDetectLanguage=false;
if (attributes.moduleID eq "00000000000000000000000000000000000"){
fckEditor.config.BodyId ="primary";
}
if (len(application.settingsManager.getSite(attributes.siteID).getGoogleAPIKey())){
fckEditor.config.GoogleMaps_Key =application.settingsManager.getSite(attributes.siteID).getGoogleAPIKey();
} else {
fckEditor.config.GoogleMaps_Key ='none';
}
fckEditor.toolbarset = '#iif(attributes.type eq "Form",de("Form"),de("Default"))#';
fckEditor.create(); // create the editor.
#application.rbFactory.getKeyValue(session.rb,'sitemanager.content.fields.maxcharacters')#