document.onFileManagerSelect = function(path) { window.opener.SetUrl(path); window.close(); }; ' . "\n"; } public static function getHandledDataType() { return 'html'; } public function resetCSSClass() { $this->setCSSClass('html'); } public function generate($parent) { $id = $this->getID(); $name = $this->getName(); $css = $this->getCSSClass(); $value = $this->getValue(); $target = $_REQUEST['mod']; require_once (implode(__DS__, array(__DIR__,'_js_','2.6.6','fckeditor_php5.php'))); $editor = new FCKeditor($this->getName()); $editor->BasePath = implode('/', array(_COMURL_,'editor','html','fckedit','_js_','2.6.6')) . '/'; $editor->Value = (string) $value; $editor->Width = '100%'; $editor->Height = '500'; $editor->ToolbarSet = 'MCMS'; $editor->Config['LinkBrowser'] = 'false'; $editor->Config['LinkBrowserURL'] = _SELF_SERVICE_ . '?mod=*mm&target=' . $target . '&mode=fckeditor'; $editor->Config['ImageBrowser'] = 'true'; $editor->Config['ImageBrowserURL'] = _SELF_SERVICE_ . '?mod=*mm&target=' . $target . '&mode=fckeditor&type=img'; $editor->Config['FlashBrowser'] = 'false'; $editor->Config['FlashBrowserURL'] = _SELF_SERVICE_ . '?mod=*mm&target=' . $target . '&mode=fckeditor&type=flash'; $editor->Config['EditorAreaCSS'] = '/layout/default/editor.css'; $editor->Config['CustomConfigurationsPath'] = _COMURL_ . '/editor/html/fckedit/customcfg.js'; $editor->Config['SpellChecker'] = 'SpellerPages'; return array('html' => $editor->CreateHtml()); } }