Closed des1roer closed 8 years ago
We will have to create a PR and add the plugin to the plugins folder: https://github.com/2amigos/yii2-ckeditor-widget/tree/master/src/assets/ckeditor/plugins then is simply adding its name to extraPlugins
. I'll put it on my 'todo' but a pull request is always welcome.
on index
$this->registerJsFile('/ckeditor/plugins/config.js', ['position' => '\yii\web\View::POS_END']);
$this->registerCssFile('/ckeditor/plugins/include/spoiler.css');
config.js
CKEDITOR.plugins.basePath = '/ckeditor/plugins/';
CKEDITOR.editorConfig = function( config ) {
config.extraPlugins = 'spoiler';
};
all project yii2tree.zip
Thanks @des1roer
Fixed on version 2.0: https://github.com/2amigos/yii2-ckeditor-widget#how-to-add-custom-plugins
how i can add spoiler?