/** * Publish CKEditor in assets folder. */ private function _publish() { if (empty(self::$_CKEditorURL)) { $CKEditorExtPath = $this->_CKEditorExtPath; $origExcludeFiles = Yii::app()->assetManager->excludeFiles; array_push(Yii::app()->assetManager->excludeFiles, '_source.7z', 'INSTALL.html', 'CHANGES.html', 'ckeditor_basic_source.js', 'ckeditor_basic.js', 'ckeditor_php4.php', 'ckeditor_php5.php', 'ckeditor_source.js', 'ckeditor.asp', 'ckeditor.pack', 'ckeditor.php', 'adapters', '_samples', '_source'); self::$_CKEditorURL = Yii::app()->assetManager->publish($CKEditorExtPath); Yii::app()->assetManager->excludeFiles = $origExcludeFiles; } }