Mercury Editor libraries are attached to entity edit forms even when Mercury is not enabled for them

Created on 14 December 2024, 5 days ago

Problem/Motivation

Currently Mercury Editor's libraries are added via hook_library_info_alter(), which does not differentiate whether or not Mercury is enabled for an entity type. Issues like πŸ› Entity browser modals won't close on content types where Mercury is not enabled Active have occurred where JavaScript breaks on non-Mercury entity types.

Proposed resolution

Modify the way that Mercury Editor libraries are attached, such that they are attached only if Mercury Editor is enabled for an entity type. Otherwise, do not attach Mercury libraries and allow the default functionality to occur.

πŸ“Œ Task
Status

Active

Version

2.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sethhill

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024