示例#1
0
 public function init()
 {
     $this->editorOptions = \mihaildev\elfinder\ElFinder::ckeditorOptions('/admin/file-manager-elfinder', ['preset' => 'full', 'extraPlugins' => 'sourcedialog', 'allowedContent' => true, 'inline' => true, 'height' => 'auto']);
     parent::init();
 }
示例#2
0
文件: Editor.php 项目: oakcms/oakcms
 public function init()
 {
     parent::init();
     $bundle = \yii\bootstrap\BootstrapAsset::register(\Yii::$app->view);
     $this->editorOptions = \mihaildev\elfinder\ElFinder::ckeditorOptions('/admin/file-manager-elfinder', ['preset' => 'full', 'extraPlugins' => 'codemirror', 'entities' => false, 'allowedContent' => true, 'baseHref' => \Yii::$app->homeUrl, 'contentsCss' => [$bundle->baseUrl . '/css/bootstrap.css', '/main.css']]);
 }