backdrop-contrib / tinymce

Integration for the TinyMCE editor in Backdrop CMS
https://backdropcms.org/project/tinymce
GNU General Public License v2.0
2 stars 1 forks source link

Let profiles control uploadable image extensions? #32

Closed indigoxela closed 6 months ago

indigoxela commented 9 months ago

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.

indigoxela commented 9 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:

indigoxela commented 6 months ago

I guess, after months of silence it's OK to close this issue with "lack of interest". :wink: