コード例 #1
0
ファイル: Editor.php プロジェクト: kizz66/meat
 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);
 }