Open msamsel opened 5 years ago
I started to wonder if we should treat it as a bug and if there are any use cases which breaks because of it :thinking:
Maybe for some plugins which explicitly uses/requires SVGs and there is an integration where you can drag/drop or copy/paste such files from external interface. But sound like an edge case TBH.
Issue also occurs in IE11 during copying from context menu.
Type of report
Bug
Provide detailed reproduction steps (if any)
Steps for Edge:
/tests/plugins/easyimage/manual/datauriimages
or create sample with image with dataUri of type likeimage/svg+xml
. Math type creates such images, you can use one created here: https://ckeditor.com/docs/ckeditor4/latest/examples/mathtype.html.text/html
clipboard data in this case.Steps for Google Chrome & Firefox:
/tests/plugins/easyimage/manual/datauriimages
or create sample with image with dataUri of type likeimage/svg+xml
. Math type creates such images, you can use one created here: https://ckeditor.com/docs/ckeditor4/latest/examples/mathtype.html.Expected result
Image type won't change during drag and drop
Actual result
Image is transformed from svg to png
Other details
Issue extracted from #3524. The critical part which obtained the image from the file is located here: https://github.com/ckeditor/ckeditor4/blob/d74ddb7c05301a8f9cc7b03579685c68c40cc167/plugins/imagebase/plugin.js#L262-L299