function CreateHtml() { global $smarty; $this->HtmlMeat = htmlspecialchars($this->Meat); if (FCKeditor_IsCompatibleBrowser()) { if (isset($_GET['fcksource']) && $_GET['fcksource'] == "true") { $this->File = 'fckeditor.original.html'; } $this->ConfigString = $this->GetConfigFieldString(); $this->id = preg_replace('/[^a-zA-Z0-9]/', '', $this->InstanceName); $this->LinkFile = $this->BasePath . 'editor/' . $this->File . '?InstanceName=' . $this->id . '&Toolbar=' . $this->ToolbarSet . '&' . $this->ConfigString; $this->Compat = true; } $smarty->assign('fck', $this); return $smarty->fetch('fck-edit.tpl'); }
/** * Returns true if browser is compatible with FCKeditor. * * @return boolean */ function IsCompatible() { return FCKeditor_IsCompatibleBrowser(); }
/** * Checks if HTMLarea (or an other richtext editor) is availible for the used browser * * @return boolean */ static function htmlarea_availible() { require_once PHPGW_INCLUDE_ROOT . '/felamimail/js/fckeditor/fckeditor.php'; // use FCKeditor's own check return FCKeditor_IsCompatibleBrowser(); return false; }