ckeditor_accordion
16,982 sites
Security covered
Allows users to create & display content in an accordion.
Description
Adds a new button to Drupal's built in CKEditor which allows the user to create & display any type of content in an accordion format.
The styling is minimal blue and easily over writeable by developers.
Version 2 supports both CKEditor 4 & 5, with an upgrade path included for those looking to upgrade their version.
CKEditor 5 Installation
- Install & Enable the module
- Open Administration > Configuration > Content authoring > Text formats and editors (admin/config/content/formats)
- Edit a text format's settings (usually Basic HTML)
- Drag n Drop the Add Accordion -button to the toolbar to show it to the users
CKEditor 4 Installation
- Install & Enable the module
- Open Administration > Configuration > Content authoring > Text formats and editors (admin/config/content/formats)
- Edit a text format's settings (usually Basic HTML)
- Drag n Drop the Add Accordion -button to the toolbar to show it to the users
- Scroll down to the bottom to the input Allowed HTML tags
- Find and replace
<dl>with<dl class>
This makes sure CKEditor doesn't remove the class name that the accordion uses.