From b4d3de1c60f071cb7295df2ba0bc85700a95ff7c Mon Sep 17 00:00:00 2001 From: Sahil Sharma Date: Fri, 15 Nov 2024 15:51:19 +1100 Subject: [PATCH] Changes to revert config --- modules/tide_ckeditor/tide_ckeditor.install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/tide_ckeditor/tide_ckeditor.install b/modules/tide_ckeditor/tide_ckeditor.install index d4d170f4..6cea1441 100644 --- a/modules/tide_ckeditor/tide_ckeditor.install +++ b/modules/tide_ckeditor/tide_ckeditor.install @@ -41,6 +41,9 @@ function tide_ckeditor_update_10002() { \Drupal::service('module_installer')->install(['ckeditor_tablecol_resize']); } $update_service = \Drupal::service('tide_core.entity_update_helper'); - // Import table col style filter. - $update_service->import('filter.format', 'filter.format.rich_text'); + // Import table col style filter in rich text format. + $config = \Drupal::configFactory()->getEditable('filter.format.rich_text'); + if ($config) { + $update_service->revert('filter.format', 'filter.format.rich_text'); + } }