Index: trunk/core/units/help/help_tag_processor.php =================================================================== diff -u -r1566 -r1662 --- trunk/core/units/help/help_tag_processor.php (.../help_tag_processor.php) (revision 1566) +++ trunk/core/units/help/help_tag_processor.php (.../help_tag_processor.php) (revision 1662) @@ -47,14 +47,32 @@ $ret = ''; } - if( file_exists($help_file) ) + $help_data = file_exists($help_file) ? file_get_contents($help_file) : false; + + if( $this->Application->isDebugMode() && dbg_ConstOn('DBG_HELP') ) { - $ret .= file_get_contents($help_file); + $this->Application->Factory->includeClassFile('FCKeditor'); + $oFCKeditor = new FCKeditor('HelpContent'); + + $oFCKeditor->BasePath = $this->Application->BaseURL('/'.ADMIN_DIR.'/editor/cmseditor'); + $oFCKeditor->Width = '100%'; + $oFCKeditor->Height = '300'; + $oFCKeditor->ToolbarSet = 'Advanced'; + $oFCKeditor->Value = $help_data; + + $oFCKeditor->Config = Array( + 'UserFilesPath' => DOC_ROOT.BASE_PATH.'kernel/user_files', + 'ProjectPath' => $this->Application->ConfigValue('Site_Path'), + 'CustomConfigurationsPath' => rtrim( $this->Application->BaseURL('/'.ADMIN_DIR.'/editor/inp_fckconfig.js'), '/'), + ); + + $ret .= $oFCKeditor->CreateHtml(); } else { - $ret .= $this->Application->Phrase('la_section_help_file_missing'); + $ret .= $help_data ? $help_data : $this->Application->Phrase('la_section_help_file_missing'); } + return $ret; } }