Defined Installation path for the plugin /libraries/ckeditor/plugins/lineheight, but if you download libraries via composer it is /libraries/lineheight.
Patch in attachment.
Also added composer.json with plugin repository.

Comments

BlacKICEUA created an issue. See original summary.

astonvictor’s picture

Added a patch that updates the library path.

abh.ai’s picture

You don't need this patch. You can specify where you want to install in your composer.json file.
Under repositories, add this:

{
        "type": "package",
        "package": {
          "name": "ckeditor-plugin/lineheight",
          "version": "1.0.4",
          "type": "drupal-library",
          "extra": {
            "installer-name": "ckeditor/plugins/lineheight"
          },
          "dist": {
            "url": "https://download.ckeditor.com/lineheight/releases/lineheight_1.0.4.zip",
            "type": "zip"
          }
        }
      },
nwom’s picture

Title: Installation path for the plugin » Add Composer automatic library downloading via Composer Merge Plugin
StatusFileSize
new6.78 KB

Webform and a few other modules use the Composer Merge Plugin to automatically download the library and keep the library up-to-date using a composer.libraries.json instead of adding it to the composer.json of the module itself

I felt it would be beneficial for this module as well, so I copied an implementation done by the patch here: #3024597: Using composer to install library as done in Webform module and added the change in the above patch. Please review!

anish.a’s picture

Assigned: Unassigned » anish.a
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new0 bytes

Tested the changes. Added backward compatibility with previous path.

anish.a’s picture

StatusFileSize
new7.02 KB

Adding correct patch.

  • anish.a committed 6c9130a on 8.x-1.x authored by NWOM
    Issue #2956943 by BlacKICEUA, anish.a, Aston Victor, NWOM: Add Composer...
anish.a’s picture

anish.a’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.