How can i load the accordian so all divs are closed initially?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wheretoplaygames created an issue. See original summary.

ricovandevin’s picture

Also looking for a way to set all tabs to closed initially.

ricovandevin’s picture

PS @wheretoplaygames Can you split your two questions in two separate issues? It will make it easier for the maintainers and the community to work on fixing the issues.

ricovandevin’s picture

Version: 8.x-1.0 » 8.x-1.x-dev
Component: User interface » Code
Category: Support request » Task
Status: Active » Needs review
FileSize
4.81 KB

Here is a patch against 8.x-1.x-dev. It adds a configuration page on /admin/config/content/ckeditor-accordion on which you can set all tabs collapsed by default.

  • j-vee committed 91a84ed on 8.x-1.x
    Fixes issues:
    https://www.drupal.org/node/2876853 #2876853
    https://www....
j-vee’s picture

Thanks @ricovandevin !

The patch worked great for me. I pushed it onto a new dev release for now.

wheretoplaygames’s picture

Issue summary: View changes
alboyd’s picture

How to do the same thing (collapse all as default) in D7?

Awesome module by the way!

kduryee’s picture

I second the request for having an all-closed configuration for Drupal 7! Thanks for a very cool module also.

wheretoplaygames’s picture

Issue summary: View changes
david.lopez’s picture

The D7 version of the patch, for 7.x-1.0 version.

- Adds a config path in admin/settings/ckeditor_accordion
- Disabled by default

j-vee’s picture

Fixed with latest recommended release for both D7 and D8.

j-vee’s picture

Status: Needs review » Fixed
j-vee’s picture

Status: Fixed » Closed (fixed)