Image feature might need clean-up #8002
Labels
bc:major
Resolving this issue will introduce a major breaking change.
package:image
resolution:expired
This issue was closed due to lack of feedback.
status:stale
type:refactor
This issue requires or describes a code refactoring.
After looking at the toolbar and the code:
So, for me, I think it might be beneficial to clear things up here. Similar cleanup (mostly for utils) was done in tables recently because we agreed that we don't have much to add there in the foreseeable future and adding new features there will not happen soon. It might be a similar case for an image, in terms that we might have a solid set of image features for the foreseeable future.
5 min proposal:
Image
- base image plugin, should provideImageUI
- base general UIimage
ui component, which is behaves differently depending on a set of enabled features)insertImage
UI - solely responsible for inserting image via URLImageUpload
enables uploading imagesImageUploadUI
- enables UI related parts (potential to have upload commands without UI)uploadImage
button - solely responsible for uploadingImageUploadEditing
- enables commands, temporal upload handling in the editing areaInsertImageUI
enables inserting image via URL part of UICKFinder
feature which should provide own, dedicated UI (asinsertImage
anduploadImage
does) so one could also have separate button forinsertImageWithCKFinder
(I don't recall its button name).Open question still "how the two-step process of uploading an image should be done behind the scenes?".
insertImage
anduploadImage
.ImageUploadCommand
either extends the behavior of theImageInsertCommand
or usesImageInsertCommand
to insert an image into the editing area. (@panr - this might be a real answer to your question).Pros:
image
insertImage
,uploadImage
,ckfinderImage
.Cons:
Looking at this in a broader spectrum - I think that we started from
imageUpload
button and build on top of it. I'd go with clearing things up if we see that the set of features of image feature is complete enough or planned image features align to the above.Originally posted by @jodator in #7890 (comment)
Why we stayed as is: #7890 (comment). (tl;dr - it is working OK and we have other priorities now).
Idea about API change for the feature configuration by @panr : #7890 (comment) (Integrations should be set as
image.insert.integrations
.The text was updated successfully, but these errors were encountered: