-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Review contents of this package #2800
Comments
After we clean this package it also needs a better description cause the current "Upload feature." is rather confusing (and incorrect). |
I got this feeling again now, when refactoring all the commands. Also, I've been thinking about some more general So perhaps we could have more granular methods – Or maybe I'm overcomplicating this and we could have |
The point of having it as a command is that one may disable it, for instance, if there is no connection with the server. |
As for keeping image plugins here: it was because of the idea that whenever one will want to handle upload, he may want to enable it for all types of content that can be uploaded: images, media, files. If they are in the one place it's simpler to find all needed plugins. However, I also found it strange recently. |
I had this feeling again now, while getting back to this feature. There's something wrong with this command. It does too much and is named incorrectly. |
OK, I got confused by the number of these plugins. The uploading capabilities are implemented by So, these coupling is unnecessary. Compare this to inheritance chains. Requiring one plugin in another one is a bit like saying that one plugin inherits from the other one. The less often we do that, the better. Strongly related to #425 (comment). |
Another thing is that |
Blocked by #488. |
And |
One more detail to fix: /**
* Performs image loading. Image is read from the disk and temporary data is displayed, after uploading process
* is complete we replace temporary data with target image from the server.
*
* @protected
* @param {module:upload/filerepository~FileLoader} loader
* @param {module:engine/model/element~Element} imageElement
*/
load( loader, imageElement ) { So is it protected or not? |
So to sum up:
Things that I've found odd:
|
@jodator, I'm afraid that you didn't notice that this is about moving stuff from |
@Reinmar yeah... there were so many |
So after F2F talks we're going to:
|
To explain this choice – we may want to implement So, to enable that, let's focus the current button on uploading. This way, we'll be able to later add a more comprehensive feature without touching this one. |
@Reinmar as we're renaming
ps.: It makes a sense for me as |
Makes sense to me. WDYT @pjasiun? |
Yep, even recently someone asks what "adapter" is. Using "upload adapter" will make it cleaner. |
Internal: Changed image and upload packages use after ckeditor/ckeditor5-upload#22.
Internal: Changed image and upload packages use after ckeditor/ckeditor5-upload#22.
Internal: Changed image and upload packages use after ckeditor/ckeditor5-upload#22.
Internal: Changed image and upload packages use after ckeditor/ckeditor5-upload#22.
Internal: Changed image and upload packages use after ckeditor/ckeditor5-upload#22.
Internal: Changed image and upload packages use after ckeditor/ckeditor5-upload#22.
Feature: Intorduced the `ImageUpload` feature. It was moved from the `@ckeditor/ckeditor5-upload` package. See ckeditor/ckeditor5-upload#22.
Internal: Changed image and upload packages use after ckeditor/ckeditor5-upload#22.
Other: Moved the image upload plugins to the `@ckeditor/ckeditor5-image` package. Minor cleanup in the API. Closes #22. BREAKING CHANGE: Renamed `Adapter` to `UploadAdapter`. BREAKING CHANGE: Removed `ImageUpload` plugin. It can be no found in ckeditor5-image repository. BREAKING CHANGE: Removed `ImageUploadEngine` plugin. It can be no found in ckeditor5-image repository. BREAKING CHANGE: Removed `ImageUploadProgress` plugin. It can be no found in ckeditor5-image repository. BREAKING CHANGE: Removed `ImageUploadButton` plugin. It can be no found in ckeditor5-image repository. BREAKING CHANGE: Renamed `FileRepository#createAdapter()` to `FileRepository#createUploadAdapter()`. BREAKING CHANGE: Renamed `filerepository-no-adapter` error to `filerepository-no-upload-adapter`.
The main
src/
dir contains now multiple plugins (only one is useful –ImageUpload
) and some utils.I'd propose something like:
Also, I lost a bit the confidence that image upload should be together with upload. It surprised me here (I forgot about this decision in the meantime). I think it's weird now. The more I look at this the more it looks bad because of all this unnecessary coupling and confusion. Instead of increasing discoverability, we might've actually lowered it.
The text was updated successfully, but these errors were encountered: