From f46ded737b31eef950fcc3443c6d24d4cc904695 Mon Sep 17 00:00:00 2001 From: Alexey Date: Wed, 16 Oct 2024 15:50:46 +0200 Subject: [PATCH] [DS-1694] - Remove changes that related to a bootstrap table inside Ckeditor --- .../install/editor.editor.full_html.yml | 36 --------- openy_editor/openy_editor.install | 73 ------------------- 2 files changed, 109 deletions(-) diff --git a/openy_editor/config/install/editor.editor.full_html.yml b/openy_editor/config/install/editor.editor.full_html.yml index 5871c694..8dc092e8 100644 --- a/openy_editor/config/install/editor.editor.full_html.yml +++ b/openy_editor/config/install/editor.editor.full_html.yml @@ -49,42 +49,6 @@ settings: - label: Highlighted element: '' - - - label: 'Plain Table' - element: '' - - - label: 'Dark Plain Table' - element: '
' - - - label: 'Striped Table' - element: '
' - - - label: 'Dark Striped Table' - element: '
' - - - label: 'Bordered Table' - element: '
' - - - label: 'Dark Bordered Table' - element: '
' - - - label: 'Borderless Table' - element: '
' - - - label: 'Dark Borderless Table' - element: '
' - - - label: 'Hover Table' - element: '
' - - - label: 'Dark Hover Table' - element: '
' - - - label: 'Small Table' - element: '
' - - - label: 'Dark Small Table' - element: '
' ckeditor5_sourceEditing: allowed_tags: { } ckeditor5_list: diff --git a/openy_editor/openy_editor.install b/openy_editor/openy_editor.install index 986ce085..b7e9f6f6 100644 --- a/openy_editor/openy_editor.install +++ b/openy_editor/openy_editor.install @@ -159,76 +159,3 @@ function openy_editor_update_91002() { $active_config->set('settings', $settings); $active_config->save(TRUE); } - -/** - * Update editor settings to add styles for table. - */ -function openy_editor_update_91003() { - $active_config = \Drupal::configFactory()->getEditable('editor.editor.full_html'); - $settings = $active_config->get('settings'); - if (empty($settings['toolbar']['items'])) { - return; - } - - // Add the "Highlighted" style. - $default_plugin_settings = [ - 'styles' => [ - [ - 'label' => 'Highlighted', - 'element' => '', - ], - [ - 'label' => 'Plain Table', - 'element' => '
', - ], - [ - 'label' => 'Dark Plain Table', - 'element' => '
', - ], - [ - 'label' => 'Dark Striped Table', - 'element' => '
', - ], - [ - 'label' => 'Dark Striped Table', - 'element' => '
', - ], - [ - 'label' => 'Bordered Table', - 'element' => '
', - ], - [ - 'label' => 'Dark Bordered Table', - 'element' => '
', - ], - [ - 'label' => 'Borderless Table', - 'element' => '
', - ], - [ - 'label' => 'Dark Borderless Table', - 'element' => '
', - ], - [ - 'label' => 'Hover Table', - 'element' => '
', - ], - [ - 'label' => 'Dark Hover Table', - 'element' => '
', - ], - [ - 'label' => 'Small Table', - 'element' => '
', - ], - [ - 'label' => 'Dark Small Table', - 'element' => '
', - ], - ], - ]; - - $settings['plugins']['ckeditor5_style'] = $default_plugin_settings; - $active_config->set('settings', $settings); - $active_config->save(TRUE); -}