Problem/Motivation
With an increasing usage of Drupal 8/9 composer installation, configuration, and updates, composer support for CKEditor 4 plugins have been mediocre at best. With the deprecation of #2912387: Stop using wikimedia/composer-merge-plugin, we need a composer installation solution that eases the library burden for new installations.
CKEditor 4.x is epected to be replaced by CKEditor 5.x in Drupal 10: #2966864: Add optional support for CKEditor 5 in D9 so we can remove CKE 4 from Drupal 10
Proposed resolution
Based on the work in #3104018: Support library auto install via composer in asset dir, we would like to request the Drupl CKEditor contrib module community collaborate and centralize composer repos under an auto-install method, rather than requiring additional root directory composer.json configurations or modules such as drupal_libraries.
We have begun a drupal-ckeditor-libraries-group packagist repo to house these packages, and would like to have other CKEditor module contrib join this collection and make composer installs as easy as possible.
Big kudos to @voleger for the original request and partnerships to get the initial work done on this.
Remaining tasks
1. Confirm whether this would be appropriate for composer installs of this module.
2. Create a module owned Github repo to house a local copy of the required ckeditor plugin.
3. Create a packagist account.
4. Contact either @voleger and @Webbeh on adding a GitHub repo to the packagist account, and setting your local Github and packagist account to the repo.
5. After the repo is in place, create a patch (a la 3104018-31.patch) to update composer.json to point to the new repo.
6. Success!
User interface changes
TBD.
Comments
Comment #2
OCTOGONE.dev CreditAttribution: OCTOGONE.dev commentedThere is an issue with this module library with a composer installation : the name of the library must be "codeTag". if it's named "codetag", the libraries is not detected.
And there is a warning during composer installation of that library :
"Deprecation warning: require.ckeditor-plugin/codeTag is invalid, it should not contain uppercase characters. Please use ckeditor-plugin/codetag instead. Make sure you fix this as Composer 2.0 will error."
Comment #3
Darren OhComment #4
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedGoing to require drupal-ckeditor-libraries-group/codetag
Comment #6
jcnventura CreditAttribution: jcnventura at 1xINTERNET commented