Closed indigoxela closed 6 months ago
Interesting... TinyMCE plays nicely when pasting svg. :smiley:
The server-side part is slightly trickier, though. Also, keep an eye on https://github.com/backdrop/backdrop-issues/issues/5541 re SVG support in core.
A PoC is available. But I didn't decide, yet, if this is a valid approach (extensions via profile). Actually, those extensions should be configurable via UI, but the Filter module doesn't provide that (but hook_form_alter might be an option).
Adventurous testers can play with it, but:
"images_file_types": "jpg,svg,png,webp"
inside tiny_optionsI guess, after months of silence it's OK to close this issue with "lack of interest". :wink:
This just came to my mind while testing for a core issue. :wink:
Currently extensions allowed for drag-n-drop/paste upload are based on image_gd_supported_extensions(), but actually that should rather be a fallback for images_file_types setting.
Mostly, because SVG isn't supported otherwise, but the editor actually handles it well.