Looking at other CKEditor plugin modules and some of the documentation on drupal.org, it seems to be a defacto standard to have ckeditor plugins in libraries/ckeditor/plugins/pluginname.

This makes sense since it removes the risk of confusion and conflicts with non-ckeditor libraries that might have the same name and CKEditor's default instructions are to put plugins in a plugins sub-directory, which is what Drupal core does with its default CKEditor plugins.

If we can get consistency with where CKEditor plugin modules store their libraries it also makes it easier to manage all CKEditor plugins in a uniform manner.

CommentFileSizeAuthor
#7 3046772-7.patch1.05 KBWebbeh
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rooby created an issue. See original summary.

Webbeh’s picture

+1 to this request.

Webbeh’s picture

Consolidating similar issues into this, so we have one issue to do the work on this:

We will want to reconcile this issue and #3104018: Support library auto install via composer in asset dir, which placed composer configuration to the library into the dev branch.

Additionally, #3103870: Follow core and contrib conventions for the location of plugin.js has started work on a patch to accomplish the issue outlined here. As this issue is older, I'm hoping to merge these so we can have some cohesive communication and movement on this issue.

Webbeh’s picture

Component: Miscellaneous » Code
Webbeh’s picture

Looking at other CKEditor plugin modules and some of the documentation on drupal.org, it seems to be a defacto standard to have ckeditor plugins in libraries/ckeditor/plugins/pluginname.

Can you link to any projects or issues where this has been done?

I am curious how this aligns with composer installs, now that we've crossed the bridge on how to automate the dependency management with composer through #3104018: Support library auto install via composer in asset dir.

Webbeh’s picture

Webbeh’s picture

Status: Active » Needs review
StatusFileSize
new1.05 KB

For review.

I placed the logic for libraries/ckeditor/plugins outside of the initial search array to reduce the extraneous usage of file_exists() in typical installs, placing it at the end.

Webbeh’s picture

Status: Needs review » Reviewed & tested by the community

Well, since this never got touched in 2 years, I'm going to go ahead and commit this, to allow the edge-case of folks installing in that location to leverage this. I'll roll out this into a new version alongside #3290833: 8.x-1.3 release plan.

  • Webbeh committed 575a876 on 8.x-1.x
    Issue #3046772: Support installing plugin to libraries/ckeditor/plugins
    
Webbeh’s picture

Status: Reviewed & tested by the community » Fixed

Y'all - better late than never. Thanks for your patience on this.

Status: Fixed » Closed (fixed)

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