Unverified Commit 413fa221 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3216214 by Wim Leers, Gauravmahlawat, awset, sonam.chaturvedi, Kristen...

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

(cherry picked from commit 790b8a6c)
parent 30ac3b44
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
      var that = this;
      once('filter-filter_html-updating', '[name="filters[filter_html][settings][allowed_html]"]', context).forEach(function (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', function (e, feature) {
          that.newFeatures[feature.name] = feature.rules;