Upload image pasted as HTML #2557
Labels
package:easy-image
support:2
An issue reported by a commercially licensed client.
type:feature
This issue reports a feature request (an idea for a new functionality or a missing option).
The editor uploads an image when you paste a file, but when you paste an HTML with the image (
<img>
tag) nothing is uploaded. In such case, HTML is inserted as it was pasted, so the source of the image might be an external website.It would be an useful feature if the editor will upload also images pasted as HTML so all images in the document will be kept on a single server.
Unfortunately, this is a little bit tricky. What we need to do is to move an image from one server to another. Should it be done by the editor or the target server should copy it directly? The server might have no permissions to request the image, so most probably the browser should download the image from one server and upload it to another. It will need some hacks to get an image as data.
This ticket could be reported as well to https://github.com/ckeditor/ckeditor5-image or https://github.com/ckeditor/ckeditor5-upload but since I am still not sure if it will be handled by the client or the server side, it is safer to report it as a part of the easy image feature. However, it does not mean that it will not be a part of generic image upload API.
The text was updated successfully, but these errors were encountered: