Skip to content

Commit

Permalink
Merge pull request #90 from aleevas/DS-1694
Browse files Browse the repository at this point in the history
feat!: [DS-1694] - Remove changes that related to a bootstrap table inside Ckeditor
  • Loading branch information
podarok authored Nov 5, 2024
2 parents ca52b62 + f46ded7 commit 0ec3cbd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 109 deletions.
36 changes: 0 additions & 36 deletions openy_editor/config/install/editor.editor.full_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,42 +49,6 @@ settings:
-
label: Highlighted
element: '<span class="highlighted">'
-
label: 'Plain Table'
element: '<table class="table">'
-
label: 'Dark Plain Table'
element: '<table class="table table-dark">'
-
label: 'Striped Table'
element: '<table class="table table-striped">'
-
label: 'Dark Striped Table'
element: '<table class="table table-striped table-dark">'
-
label: 'Bordered Table'
element: '<table class="table table-bordered">'
-
label: 'Dark Bordered Table'
element: '<table class="table table-bordered table-dark">'
-
label: 'Borderless Table'
element: '<table class="table table-borderless">'
-
label: 'Dark Borderless Table'
element: '<table class="table table-borderless table-dark">'
-
label: 'Hover Table'
element: '<table class="table table-hover">'
-
label: 'Dark Hover Table'
element: '<table class="table table-hover table-dark">'
-
label: 'Small Table'
element: '<table class="table table-sm">'
-
label: 'Dark Small Table'
element: '<table class="table table-sm table-dark">'
ckeditor5_sourceEditing:
allowed_tags: { }
ckeditor5_list:
Expand Down
73 changes: 0 additions & 73 deletions openy_editor/openy_editor.install
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '<span class="highlighted">',
],
[
'label' => 'Plain Table',
'element' => '<table class="table">',
],
[
'label' => 'Dark Plain Table',
'element' => '<table class="table table-dark">',
],
[
'label' => 'Dark Striped Table',
'element' => '<table class="table table-striped">',
],
[
'label' => 'Dark Striped Table',
'element' => '<table class="table table-striped table-dark">',
],
[
'label' => 'Bordered Table',
'element' => '<table class="table table-bordered">',
],
[
'label' => 'Dark Bordered Table',
'element' => '<table class="table table-bordered table-dark">',
],
[
'label' => 'Borderless Table',
'element' => '<table class="table table-borderless">',
],
[
'label' => 'Dark Borderless Table',
'element' => '<table class="table table-borderless table-dark">',
],
[
'label' => 'Hover Table',
'element' => '<table class="table table-hover">',
],
[
'label' => 'Dark Hover Table',
'element' => '<table class="table table-hover table-dark">',
],
[
'label' => 'Small Table',
'element' => '<table class="table table-sm">',
],
[
'label' => 'Dark Small Table',
'element' => '<table class="table table-sm table-dark">',
],
],
];

$settings['plugins']['ckeditor5_style'] = $default_plugin_settings;
$active_config->set('settings', $settings);
$active_config->save(TRUE);
}

0 comments on commit 0ec3cbd

Please sign in to comment.