0

I would like to add the possibility to change color in CKEditor, mainly for Webforms. The instructions at https://www.drupal.org/project/colorbutton suggest to download manually the CKEditor colorbutton plugin and then add it to /libraries: would it instead be possibile to modify composer.libraries.json and install the plugin via Composer ? Thanks a lot

  • Yes, you can use Composer to download front end libraries too. You'll want to put it in your project root composer.json, so it doesn't get overwritten when core or contributed modules are updated. – Clive Nov 21 '18 at 14:38
  • 1
    Webform use a custom CKEditor but you can change it to any Text format's editor with the Color button module via the HTML Editor Settings (/admin/structure/webform/config/elements) – jrockowitz Nov 22 '18 at 2:10
0

Yes. As Clive says in his comment above, you can certainly use Composer to manage other code besides Drupal core and contrib modules.

If you are keeping your code in version control such as git, this also has the advantage of keeping third-party code out of your project's version control repository. Just commit your composer.json and composer.lock and you can rebuild all your project dependencies when you deploy.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.