Problem/Motivation
Currently it is not possible to configure where the collapsible dnd functionality is allowed.
Some routes I was able to identity where the collapsible dnd was present but could be enabled/disabled are:
* 'entity.entity_form_display.*'
* 'entity.entity_view_display.*'
* 'entity.menu.edit_form'
* 'entity.webform.edit_form'
Proposed resolution
I made a fork with a proposed solution of a config form where you can configure which of the above paths are allowed to have the collapsible dnd library included.
It works with wildcards so all entities are covered (nodes, paragraphs, media, ...).
Issue fork collapsible_dnd-3381906
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
wannesdrComment #4
reszliThis is really handy. (I wanted to disable it on webforms only)
One option missing is the taxonomy vocabulary forms.
adding the following to CollapsibleDndRoutes::$collapsibleDndRoutes solved it for me
I would also propose to enable options by default - disable on demand.
BTW, simple textarea where one can add any route would be more flexible then the hard-coded checkboxes.
Comment #5
nagy.balint commentedComment #7
nagy.balint commentedI implemented it slightly differently with a textarea as suggested in #4.