Follow-up to #2061377: [drupalImage] Optionally apply image style to images uploaded in CKEditor 5.
Problem/Motivation
In the parent issue it was decided (#222-26) that not only \Drupal\image\Plugin\Filter\FilterImageStyle::process() should validate the file UUID, but \Drupal\editor\Plugin\Filter\EditorFileReference as well.
Proposed resolution
Validate that files referenced by UUID actually exist in FilterImageStyle::process() and EditorFileReference::process().
Remaining tasks
- Discuss whether an error message should be displayed, blocking content editing, if the file referenced by the text is not found.
User interface changes
None, except for the potential error message above.
API changes
None.
Comments
Comment #2
ifreeman commentedI think the functionality proposed in the remaining tasks section probably belongs in a much bigger issue of its own. It could apply to all content areas, not just those managed by FilterImageStyle and EditorFileReference.
Comment #16
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!