Installing dependencies via composer currently sets the library version in the repositories composer.json, updating the module won't change it. Maybe it would helpful to consider the way this was solved in webform module: Using composer to install libraries for the Webform module.

Comments

osopolar created an issue. See original summary.

a.milkovsky’s picture

Thank you for the interesting input! That's definitely a good practice.
A patch is welcome.

osopolar’s picture

Status: Active » Needs review
StatusFileSize
new3.65 KB
amanire’s picture

Composer found an error in the JSON format of composer.library.json when I applied the patch in #3. I've revised it here and copied over the module info from composer.json as well.

nwom’s picture

Thanks for the patch! I updated the patch to automatically download the library when downloading the module similar to https://git.drupalcode.org/project/ckeditor_codemirror/-/blob/8.x-2.x/co.... Please review.

nwom’s picture

Forgot the patch :P

sebby’s picture

it works for me, I got the JS lib in the libraries folder.
thx NWOM

sebby’s picture

Status: Needs review » Needs work

it works for me, I got the JS lib in the libraries folder.
thx NWOM

sebby’s picture

Status: Needs work » Reviewed & tested by the community

sorry for the wrong status.

nuuou’s picture

Updating patch #6 for compatibility with composer/installers:^2.2
Previous patch locked that to ~1.0

This also moves this library to the ckeditor.tabletoolstoolbar directory.

Patch + interdiff attached!

nuuou’s picture

Whoops, had a typo in the installer-name.

New patch + interdiff with 10.