- Issue created by @trackleft2
- πΊπΈUnited States trackleft2 Tucson, AZ πΊπΈ
Possibly similar issue on other contrib module https://www.drupal.org/project/remote_stream_wrapper/issues/2776951 β
The Drupal status report incorrectly flags valid SVG icons as incompatible with CKEditor5, and console errors are observed on pages with CKEditor due to SVG URL format issues. The `guessMimeType($icon)` method may not accurately identify SVG files with URLs containing AWS S3 `?VersionId=...` query parameters, leading to these errors.
Modify the `guessMimeType($icon)` function or its usage in `embed_requirements` to handle URLs with query parameters accurately. Additionally, address the CKEditor5 console errors by ensuring it recognizes SVG URLs with query parameters as valid.
None expected, as changes pertain to backend processing and CKEditor5's handling of file types.
Potential minor adjustments in file type processing methods and CKEditor5's SVG handling.
No changes expected.
"Fixed issues with SVG icon URL processing in Drupal status reports and CKEditor5. Updates ensure SVGs with query parameters are correctly identified as valid formats, resolving both status report inaccuracies and CKEditor5 console errors."
Status error
Status Details
Errors found
Embed button CKEditor5 compatiblity
The following embed button(s) are not using SVG icons and will not be compatible with CKEditor5
Embed Content: somefile.svg?VersionId=i8YlnyiQ7jgD_ZPP6sDFsWsbof5tAA3B
console error
CKEditor 5 only supports enity embed icons in SVG format. The icon provided is post_add_FILL0_wght400_GRAD0_opsz24.svg?VersionId=U2OvXbMiPNLelJEnvmocKQVjh2Towbh8
SVG icons not appearing in ckeditor.
Offending code for status report https://git.drupalcode.org/project/embed/-/blob/8.x-1.x/embed.install?re...
Active
1.0
Code
Possibly similar issue on other contrib module https://www.drupal.org/project/remote_stream_wrapper/issues/2776951 β