本文整理汇总了PHP中FCKeditor_IsCompatibleBrowser函数的典型用法代码示例。如果您正苦于以下问题:PHP FCKeditor_IsCompatibleBrowser函数的具体用法?PHP FCKeditor_IsCompatibleBrowser怎么用?PHP FCKeditor_IsCompatibleBrowser使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了FCKeditor_IsCompatibleBrowser函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CreateHtml
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');
}
示例2: IsCompatible
/**
* Returns true if browser is compatible with FCKeditor.
*
* @return boolean
*/
function IsCompatible()
{
return FCKeditor_IsCompatibleBrowser();
}
示例3: htmlarea_availible
/**
* 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;
}