Unable to load with JS aggregation enabled

Created on 16 December 2024, 2 days ago

Problem/Motivation

With Drupal JS aggregation enabled, the plug-in doesn't load.
We are using find-and-replace, not sure if this is the same for other plugins

It seems maybe related to load ordering.
The find-and-replace JS script from CDN is loaded before the CKEditor 5 panel.

With JS aggregation disabled, the find-and-replace JS script will be loaded separately after the CK5 aggregated JS. Then the plugin is working.

Steps to reproduce

Navigate to Admin, Performance
Enable JS aggregation
Enable find-and-replace in one of the Text Format
Create an article using one of the Text Format, the CK5 panel cannot be loaded. No JS error in console.

Proposed resolution

For remote script, setting the weight seems not working because it cannot set a positive number via hook_library_info_build.
For local script, setting the dependency 'core/ckeditor5.basic' to make it work.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇨🇦Canada francismak

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

Comments & Activities

Production build 0.71.5 2024