init() публичный Метод

public init ( )
Пример #1
0
 public function init()
 {
     $theme = new AppAsset();
     $baseUrl = \Yii::getAlias($theme->baseUrl);
     $cssList = [];
     foreach ($theme->css as $css) {
         if (preg_match('#^http#', $css)) {
             continue;
         }
         $cssList[] = $baseUrl . '/' . $css;
     }
     $this->clientOptions = ['toolbar' => 'full', 'contentsCss' => $cssList, 'allowedContent' => true, 'disallowedContent' => 'img{width,height,style}', 'extraAllowedContent' => 'div(*){*}[*],span(*){*}[*]', 'shiftEnterMode' => 2, 'image2_disableResizer' => true, 'image2_prefillDimensions' => false];
     if ($this->userOptions) {
         foreach ($this->userOptions as $k => $v) {
             $this->clientOptions[$k] = $v;
         }
     }
     parent::init();
 }
Пример #2
0
 public function init()
 {
     $this->clientOptions = \mihaildev\elfinder\ElFinder::ckeditorOptions('elfinder', []);
     parent::init();
 }