Skip to content

fix: special characters in editor#947

Merged
BarbaraOliveira13 merged 3 commits intodevelopfrom
fix/special_characters_in_editor
Mar 2, 2026
Merged

fix: special characters in editor#947
BarbaraOliveira13 merged 3 commits intodevelopfrom
fix/special_characters_in_editor

Conversation

@Stef-Rousset
Copy link
Contributor

@Stef-Rousset Stef-Rousset commented Feb 20, 2026

🎩 Description

This PR prevents adding images with special characters in editor.

Testing

  1. As an admin, go to a process, create a new proposal. See that you have text warning that you should not have special characters in the name of the file. Try to drop an image with a special character in its name (like test(image.jpg or test-image.jpg) and see that your image is not loaded and you have an error message (screenshot one).
  2. Try to load the image with the upload modal, see that you have a text "No special characters.." and an error when trying to add an image with an incorrect name (screenshot two).
  3. Try the to add an image with a valid name by dropping it or with the modal, See you don't have an error and your image is loaded.
  4. Do the same tests in a process where you have added public proposal custom field of type textarea/rich-text-editor via decidim-awesome (screenshot three), and see that you have the same behavior.
  5. Do the same tests as a user in the FO for a normal proposal and a proposal with custom field, and see that you have the same behavior.

📌 Related Issues

Link your PR to an issue

Tasks

  • Add specs

📷 Screenshots

ONE
Capture d’écran 2026-02-23 à 10 28 02

TWO
Capture d’écran 2026-02-23 à 10 32 18

THREE
Capture d’écran 2026-02-23 à 10 41 52

@Stef-Rousset Stef-Rousset marked this pull request as ready for review February 23, 2026 09:45
@BarbaraOliveira13 BarbaraOliveira13 changed the title Fix special characters in editor fix: special characters in editor Mar 2, 2026
@BarbaraOliveira13 BarbaraOliveira13 merged commit 80c8332 into develop Mar 2, 2026
17 of 18 checks passed
@BarbaraOliveira13 BarbaraOliveira13 deleted the fix/special_characters_in_editor branch March 2, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants