You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several problems with the current image uploading architecture:
Very complex and ceremonial, involving multiple classes, adaptors, factories, etc.
Hard to accomplish at runtime, all but requires a custom build.
Not documented very well yet.
Trix has a much simpler and easier to use architecture: when the user drops an image, it immediately shows up in the document, and the editor fires an event. It's up to the user's code to listen for the event, upload the image data, and when the data is on the server, set an attribute on the image in the document indicating its server URL.
I'd love for CKEditor to consider supporting this alternative upload workflow.
The text was updated successfully, but these errors were encountered:
CKEditor 5 introduced Easy Image. All you need to do to make it work is to set up a CKEditor Cloud Services account and configure the editor to use it:
Then, it's Easy Image's service (implemented by CKEditor Cloud Services) role to support things like scaling images for different sizes, cropping, etc. You just drop the image and it works. I think that it can't be done simpler :).
The second option is writing your own upload adapter which is indeed not very well documented yet. However, it doesn't require creating a custom build and it's, in general, quite simple to start (really, not that much ceremony). The only complexity will come from actually sending the file to the server in a secure and reliable way, handle errors and so on.
All this may look confusing now because we haven't finished CKEditor Cloud Services (soon...) and we haven't documented all this properly. The task about improving the documentation is tracked in #618.
There are several problems with the current image uploading architecture:
Trix has a much simpler and easier to use architecture: when the user drops an image, it immediately shows up in the document, and the editor fires an event. It's up to the user's code to listen for the event, upload the image data, and when the data is on the server, set an attribute on the image in the document indicating its server URL.
I'd love for CKEditor to consider supporting this alternative upload workflow.
The text was updated successfully, but these errors were encountered: