Index: branches/unlabeled/unlabeled-1.68.4/core/kernel/db/db_tag_processor.php =================================================================== diff -u -r7031 -r7036 --- branches/unlabeled/unlabeled-1.68.4/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 7031) +++ branches/unlabeled/unlabeled-1.68.4/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 7036) @@ -1701,6 +1701,33 @@ return $list->getTotal($this->SelectParam($params, 'field,name'), $params['function']); } + + + function FCKEditor($params) { + $params['no_special'] = 1; + $value = $this->Field($params); + $name = $this->InputName($params); + + include_once(FULL_PATH.'/core/cmseditor/fckeditor.php'); + $oFCKeditor = new FCKeditor($name); + $oFCKeditor->BasePath = BASE_PATH.'/core/cmseditor/'; + $oFCKeditor->Width = $params['width'] ; + $oFCKeditor->Height = $params['height'] ; + $oFCKeditor->ToolbarSet = 'Advanced' ; + $oFCKeditor->Value = $value ; + $oFCKeditor->Config = Array( + //'UserFilesPath' => $pathtoroot.'kernel/user_files', + 'ProjectPath' => BASE_PATH.'/', + 'CustomConfigurationsPath' => $this->Application->BaseURL().'core/cmseditor/inp_fckconfig.js', +// 'EditorAreaCSS' => $this->Application->BaseURL().'/themes/inportal_site/inc/inportal.css', //GetThemeCSS(), + //'StylesXmlPath' => '../../inp_styles.xml', +// 'Debug' => 1, + 'Admin' => 1, + 'K4' => 1, + ); + return $oFCKeditor->CreateHtml(); + } + } ?> \ No newline at end of file