Index: branches/unlabeled/unlabeled-1.36.2/core/units/admin/admin_tag_processor.php =================================================================== diff -u -N -r8698 -r8699 --- branches/unlabeled/unlabeled-1.36.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 8698) +++ branches/unlabeled/unlabeled-1.36.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 8699) @@ -460,10 +460,18 @@ $oFCKeditor->Height = $params['height'] ; $oFCKeditor->ToolbarSet = 'Advanced' ; $oFCKeditor->Value = '' ; + + if ($this->Application->isModuleEnabled('In-Portal')) { + $config_path = $this->Application->BaseURL().'kernel/admin_templates/incs/inp_fckconfig.js'; + } + else { + $config_path = $this->Application->BaseURL().'core/admin_templates/js/inp_fckconfig.js'; + } + $oFCKeditor->Config = Array( // 'UserFilesPath' => FULL_PATH.'/kernel/user_files', 'ProjectPath' => BASE_PATH.'/', - 'CustomConfigurationsPath' => $this->Application->isModuleEnabled('In-Portal') ? $this->Application->BaseURL().'kernel/admin_templates/incs/inp_fckconfig.js' : $this->Application->BaseURL().$editor_path.'fckconfig.js', + 'CustomConfigurationsPath' => $config_path, // 'EditorAreaCSS' => $this->Application->BaseURL().'/themes/inportal_site/inc/inportal.css', //GetThemeCSS(), //'StylesXmlPath' => '../../inp_styles.xml', // 'Debug' => 1, @@ -811,10 +819,10 @@ // not found (try to compile on the fly) $object =& $this->Application->recallObject('skin.-item', null, Array ('skip_autoload' => true)); /* @var $object kDBItem */ - + $skin_eh =& $this->Application->recallObject('skin_EventHandler'); /* @var $skin_eh SkinEventHandler */ - + $object->Load(1, 'IsPrimary'); $skin_eh->Compile($object); $ret = $css_url.'admin-'.$style_name.'-'.adodb_mktime().'.css';