Validate file instances in Text Editor fliters

Created on 2 January 2017, over 8 years ago
Updated 4 September 2025, 13 days ago

Follow-up to ✨ Allow image style to be selected in Text Editor's image dialog Needs work .

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.

✨ Feature request
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

editor.module

Created by

πŸ‡ΊπŸ‡ΈUnited States ifreeman

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank 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!

Production build 0.71.5 2024