Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Motivation
Media WYSIWYG already optionally limits file types.. nice if it could also optionally limit file URI schemes..
Proposed resolution
add and check for
$form['wysiwyg']['media_wysiwyg_wysiwyg_allowed_schemes']
as per
$form['wysiwyg']['media_wysiwyg_wysiwyg_allowed_types']
User interface changes
add "Allowed URI schemes" field at /admin/config/media/browser
Comment | File | Size | Author |
---|---|---|---|
#1 | media-wysiwyg-schemes-2341873-1.patch | 2.49 KB | joshbotnet |
|
Comments
Comment #1
joshbotnet CreditAttribution: joshbotnet commentedComment #2
gmclelland CreditAttribution: gmclelland commentedPatch attached. Setting this to NR.
Comment #3
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team