When CKEditor5 is installed, only allow SVGs for button icons

Created on 19 September 2022, almost 2 years ago
Updated 7 June 2023, about 1 year ago

Problem/Motivation

CKEditor5 only supports SVGs for the embed icons. If a user uploads an image for the icon which is not in an SVG format, it will not show up on the toolbar for CKEditor5. Embed should reflect this, and only allow SVGs, or at least add an info message when a user tries to upload anything else it might not show up on the toolbar. We might also want to consider a BC aspect of this change, as there might be sites using other extensions already for CKEditor4, and they would probably "lose" their icons when updating to CKEditor5.

Steps to reproduce

Proposed resolution

Change the file_validate_extensions value on EmbedButtonForm to only allow SVGs.

Remaining tasks

User interface changes

There might be some changes on the form, depending on the decision if we want to add an info message here.

API changes

-

Data model changes

-

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇭🇺Hungary balintpekker Budapest, Hungary

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024