本文整理匯總了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;
}