This plugins creates only the logic of the plugin; you have to apply the styling for your self, trust me, it's not a rocket science...
Copy the accordion folder into your CKEDTIOR plugins folder then activate in the config file
config.extraPlugins = 'accordion';
This plugin is css driven mostly, so you need to apply a basic setup for the accordion
.collapse-panel {
display: block;
width: 100%;
}
.collapse-panel h6 {
width: 100%;
cursor: pointer;
}
.collapse-panel h6 a {
display: block;
}
.collapse-panel .panel-content {
max-height: 0;
overflow: hidden;
transition: all .2s ease;
}
.collapse-panel.active .panel-content {
max-height: 1000px;
}
CSS for just hide/show effect
.collapse-panel .panel-content {
display: none;
}
.collapse-panel.active .panel-content {
display: block;
}
- I created a CKEDITOR plugin for a very first time, so i know, it can be better. :-)
- The plugin also has an option for dark scheme, if you can choose that, the root element will got a "dark" class, then you can apply your css to that.