本文整理汇总了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);
}