本文整理匯總了PHP中Editor::oCKeditor方法的典型用法代碼示例。如果您正苦於以下問題:PHP Editor::oCKeditor方法的具體用法?PHP Editor::oCKeditor怎麽用?PHP Editor::oCKeditor使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Editor
的用法示例。
在下文中一共展示了Editor::oCKeditor方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: initCK
private static function initCK()
{
include CORE_ROOT . 'class/Editor/Ckeditor.php';
self::$oCKeditor = new CKEditor();
self::$oCKeditor->returnOutput = true;
// Path to CKEditor directory, ideally instead of relative dir, use an absolute path:
// self::$oCKeditor->basePath = '/ckeditor/'
// If not set, CKEditor will try to detect the correct path.
self::$oCKeditor->basePath = BASE_PATH . 'js/ckeditor/';
// CKFinder::SetupCKEditor(self::$oCKeditor, BASE_PATH . 'js/ckfinder/');
self::$oCKeditor->config['filebrowserBrowseUrl'] = BASE_PATH . 'admin/api/finder';
// Set global configuration (will be used by all instances of CKEditor).
// self::$oCKeditor->config['width'] = 600;
// Change default textarea attributes
// self::$oCKeditor->textareaAttributes = array("cols" => "*", "rows" => 10);
}