CKeditor Details Accordion
This module adds a button to the CKEditor toolbar that allows users to easily insert and manage collapsible "details" sections directly within their content. These sections provide accordion-like functionality without requiring extra JavaScript and offer improved accessibility and browser compatibility.
Adds a CKeditor button to insert details elements within content, which can be nested. JavaScript is adapted from original code by Ayhan Akilli.
The HTML details element is an easy way to provide accordion functionality for your editors and content authors. Because it doesn't rely on JavaScript for this functionality, it's dead easy to implement, and is responsive and accessible.
It's worth noting that there isn't yet 100% browser support for details, but this module forces the inclusion of Drupal core's shim to improve details support from older IE and pre-Chromium Edge browsers, as well as screen readers.