widgets/Redactor.php
protected function registerPlugins()
    {
        if (isset($this->clientOptions['plugins']) && count($this->clientOptions['plugins'])) {
            foreach ($this->clientOptions['plugins'] as $plugin) {
                $js = 'plugins/' . $plugin . '/' . $plugin . '.js';
                if (file_exists($this->sourcePath . DIRECTORY_SEPARATOR . $js)) {
                    $this->assetBundle->js[] = $js;
                }
                $css = 'plugins/' . $plugin . '/' . $plugin . '.css';
                if (file_exists($this->sourcePath . DIRECTORY_SEPARATOR . $css)) {
                    $this->assetBundle->css[] = $css;
                }
            }
        }
    }
protected function registerPlugins()
    {
        if (isset($this->clientOptions['plugins']) && count($this->clientOptions['plugins'])) {
            foreach ($this->clientOptions['plugins'] as $plugin) {
                $js = 'plugins/' . $plugin . '/' . $plugin . '.js';
                if (file_exists($this->sourcePath . DIRECTORY_SEPARATOR . $js)) {
                    $this->assetBundle->js[] = $js;
                }
                $css = 'plugins/' . $plugin . '/' . $plugin . '.css';
                if (file_exists($this->sourcePath . DIRECTORY_SEPARATOR . $css)) {
                    $this->assetBundle->css[] = $css;
                }
            }
        }
    }
protected function registerPlugins ( ) { if ( isset ( $ this -> clientOptions [ 'plugins' ] ) && count ( $ this -> clientOptions [ 'plugins' ] ) ) { foreach ( $ this -> clientOptions [ 'plugins' ] as $ plugin ) { $ js = 'plugins/' . $ plugin . '/' . $ plugin . '.js' ; if ( file_exists ( $ this -> sourcePath . DIRECTORY_SEPARATOR . $ js ) ) { $ this -> assetBundle -> js [ ] = $ js ; } $ css = 'plugins/' . $ plugin . '/' . $ plugin . '.css' ; if ( file_exists ( $ this -> sourcePath . DIRECTORY_SEPARATOR . $ css ) ) { $ this -> assetBundle -> css [ ] = $ css ; } } } }
Register plugins for Redactor
Register plugins for Redactor