Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin collection will allow to require plugin by name when it is provided in config.plugins or if it was already loaded. #8632

Merged
merged 14 commits into from
Dec 11, 2020

Conversation

jodator
Copy link
Contributor

@jodator jodator commented Dec 10, 2020

Suggested merge commit message (convention)

Internal: Plugin collection will allow to require plugin by name when it is provided in config.plugins or if it was already loaded. Closes #2907.


Additional information

@@ -18,9 +18,12 @@ import CloudServicesUploadAdapter from './cloudservicesuploadadapter';
*
* This is a "glue" plugin which enables:
*
* * {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter}.
*
* This plugin requires plugin to be present in the editor configuration:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT about @dependency annotation that could be rendered somehow by our documentation tool?

/**
 * ...
 * @dependency {module:image/image~Image}
 * @dependency {module:image/imageupload~ImageUpload}
 * ...
 */

I am pretty sure that the dependency list mentioned in the API docs will be missed. As for now, it's ok but the mechanism could be improved in the future.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracted to #8645.

Copy link
Member

@pomek pomek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@pomek pomek merged commit 9c24fca into dll-integration Dec 11, 2020
@pomek pomek deleted the i/2907 branch December 11, 2020 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants