本文整理匯總了PHP中FSS_Helper::sceditor方法的典型用法代碼示例。如果您正苦於以下問題:PHP FSS_Helper::sceditor方法的具體用法?PHP FSS_Helper::sceditor怎麽用?PHP FSS_Helper::sceditor使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FSS_Helper
的用法示例。
在下文中一共展示了FSS_Helper::sceditor方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: AddSCEditor
static function AddSCEditor()
{
if (!FSS_Helper::$sceditor) {
if (FSS_Settings::Get('support_sceditor')) {
$document = JFactory::getDocument();
$document->addScript(JURI::root(true) . '/components/com_fss/assets/js/sceditor/jquery.sceditor.bbcode.js');
$document->addScript(JURI::root(true) . '/components/com_fss/assets/js/sceditor/include.sceditor.js');
$document->addScriptDeclaration("var sceditor_emoticons_root = '" . JURI::root(true) . "/components/com_fss/assets/';");
$document->addScriptDeclaration("var sceditor_style_root = '" . JURI::root(true) . "/components/com_fss/assets/js/sceditor/';");
$document->addScriptDeclaration("var sceditor_style_type = '" . FSS_Settings::get('sceditor_content') . "';");
$button_exclude = array();
if (!FSS_Settings::get('sceditor_emoticons')) {
$button_exclude[] = "emoticon";
}
if (FSS_Settings::get('sceditor_buttonhide')) {
$button_exclude[] = str_replace(" ", "", FSS_Settings::get('sceditor_buttonhide'));
}
$document->addScriptDeclaration("var sceditor_toolbar_exclude = '" . implode(",", $button_exclude) . "';");
$document->addStyleSheet(JURI::root(true) . '/components/com_fss/assets/js/sceditor/themes/' . FSS_Settings::get('sceditor_theme') . '.css');
//$document->addStyleSheet(JURI::root(true).'/components/com_fss/assets/js/sceditor/themes/square.css');
}
FSS_Helper::$sceditor = true;
}
}