Index: branches/unlabeled/unlabeled-1.27.2/core/units/admin/admin_tag_processor.php =================================================================== diff -u -r7577 -r7579 --- branches/unlabeled/unlabeled-1.27.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 7577) +++ branches/unlabeled/unlabeled-1.27.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 7579) @@ -410,17 +410,23 @@ function FCKEditor($params) { - include_once(FULL_PATH.'/core/cmseditor/fckeditor.php'); + if (file_exists(FULL_PATH.'/core/cmseditor/fckeditor.php')) { + $editor_path = 'core/cmseditor/'; + } + else { + $editor_path = 'admin/editor/cmseditor/'; + } + include_once(FULL_PATH.'/'.$editor_path.'/fckeditor.php'); $oFCKeditor = new FCKeditor($params['name']); - $oFCKeditor->BasePath = BASE_PATH.'/core/cmseditor/'; + $oFCKeditor->BasePath = BASE_PATH.'/'.$editor_path; $oFCKeditor->Width = $params['width'] ; $oFCKeditor->Height = $params['height'] ; $oFCKeditor->ToolbarSet = 'Advanced' ; $oFCKeditor->Value = '' ; $oFCKeditor->Config = Array( //'UserFilesPath' => $pathtoroot.'kernel/user_files', 'ProjectPath' => BASE_PATH.'/', - 'CustomConfigurationsPath' => $this->Application->BaseURL().'core/cmseditor/fckconfig.js', + 'CustomConfigurationsPath' => $this->Application->BaseURL().$editor_path.'fckconfig.js', // 'EditorAreaCSS' => $this->Application->BaseURL().'/themes/inportal_site/inc/inportal.css', //GetThemeCSS(), //'StylesXmlPath' => '../../inp_styles.xml', // 'Debug' => 1,