- Issue created by @SirClickALot
- 🇩🇪Germany juagarc4
Hi SirClickalot
I had the same problem and found a solution in the file "ckeditor5_test_module_allowed_image.module".
The type should be an IANA image media type Name, like it's explained in the mentioned file.// Add a custom file type to the image upload plugin. Note that 'svg+xml'
// below should be an IANA image media type Name, with the "image/" prefix
// omitted. In other words: a subtype of type image.So, you should replace your line:
$image_upload_plugin_definition['ckeditor5']['config']['image']['upload']['types'][] = 'svg';
by
$image_upload_plugin_definition['ckeditor5']['config']['image']['upload']['types'][] = 'svg+xml';
It should fix your problem.
Regards
- 🇬🇧United Kingdom SirClickALot Somerset
@juagarc4 → brilliant, just what I needed, thank you!
- 🇩🇪Germany juagarc4
Hi SirClickalot,
I close this ticket since the problem has been solved :-)
Regards
- Status changed to Fixed
about 2 months ago 1:26pm 23 July 2024 Automatically closed - issue fixed for 2 weeks with no activity.