Skip to content

Commit

Permalink
Changes to revert config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil Sharma committed Nov 15, 2024
1 parent c204f0a commit b4d3de1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/tide_ckeditor/tide_ckeditor.install
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

0 comments on commit b4d3de1

Please sign in to comment.