From ac69b04e12d826baf9c30567e71d686cde2b7660 Mon Sep 17 00:00:00 2001 From: Lauri Eskola <lauri.eskola@acquia.com> Date: Thu, 25 Aug 2022 12:23:57 +0300 Subject: [PATCH] Issue #3216214 by Wim Leers, Gauravmahlawat, awset, sonam.chaturvedi, Kristen Pol: CKEditor + HTML filter UX broken on Claro: "Based on the text editor configuration, these tags have automatically been added:" message never appears --- core/modules/filter/filter.filter_html.admin.es6.js | 2 +- core/modules/filter/filter.filter_html.admin.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/filter/filter.filter_html.admin.es6.js b/core/modules/filter/filter.filter_html.admin.es6.js index b60638dafa26..260f98ce70f3 100644 --- a/core/modules/filter/filter.filter_html.admin.es6.js +++ b/core/modules/filter/filter.filter_html.admin.es6.js @@ -90,7 +90,7 @@ that.$allowedHTMLFormItem = $(formItem); that.$allowedHTMLDescription = that.$allowedHTMLFormItem .closest('.js-form-item') - .find('.description'); + .find('#edit-filters-filter-html-settings-allowed-html--description'); that.userTags = that._parseSetting(formItem.value); // Update the new allowed tags based on added text editor features. diff --git a/core/modules/filter/filter.filter_html.admin.js b/core/modules/filter/filter.filter_html.admin.js index a25268bfe721..0dc585c7a33a 100644 --- a/core/modules/filter/filter.filter_html.admin.js +++ b/core/modules/filter/filter.filter_html.admin.js @@ -42,7 +42,7 @@ const that = this; once('filter-filter_html-updating', '[name="filters[filter_html][settings][allowed_html]"]', context).forEach(formItem => { that.$allowedHTMLFormItem = $(formItem); - that.$allowedHTMLDescription = that.$allowedHTMLFormItem.closest('.js-form-item').find('.description'); + that.$allowedHTMLDescription = that.$allowedHTMLFormItem.closest('.js-form-item').find('#edit-filters-filter-html-settings-allowed-html--description'); that.userTags = that._parseSetting(formItem.value); $(document).on('drupalEditorFeatureAdded', (e, feature) => { that.newFeatures[feature.name] = feature.rules; -- GitLab