Filter guidelines does not updated when a user cancels a filter change.

Created on 9 June 2017, about 7 years ago
Updated 30 January 2023, over 1 year ago

There is an edge case when exiting the filter dialog that causes the guidelines text not to be displayed.

Steps to recreate (on 8.x-3.x)

1) when editing a filtered text area with multiple filters, that has one or more options that filter html
2) change the filter select box to an option that restricts the HTML tags available. (Full HTML to Basic HTML)
- the guidelines text will be removed or changed to the relevant content type or removed (if none)
3) in the resulting "Change text format?" dialog, hit cancel.
- this will result in the select option being changed back to the initial value
- the guidelines text, will not be updated, (will remain that of what was changed to in 2)

This issue happens because the guidelines region is updated by .change(), which is not triggered when simply updating the value of a select with .val().

πŸ› Bug report
Status

Needs work

Version

9.5

Component
EditorΒ  β†’

Last updated 15 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States richgerdes New Jersey, USA

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.

  • The Needs Review Queue Bot β†’ tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide β†’ to find step-by-step guides for working with issues.

Production build 0.69.0 2024