Skip to content
Snippets Groups Projects
Commit 8fe8c7b8 authored by Vladimir Roudakov's avatar Vladimir Roudakov Committed by Vladimir Roudakov
Browse files

Issue #3214190 by VladimirAus: Add configuration to remove forcing styles on CEditor

parent d17458d7
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,9 @@ libraries:
- bootstrap5/bootstrap5-js-latest
- bootstrap5/global-styling
ckeditor_stylesheets:
- css/style.css
stylesheets-remove:
- '@classy/css/components/tabs.css'
......
......@@ -10,19 +10,6 @@ use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;
/**
* Implements hook_ckeditor_css_alter().
*/
function bootstrap5_ckeditor_css_alter(array &$css, Editor $editor) {
if (theme_get_setting('b5_ckeditor_enable')) {
$css[] = implode(DIRECTORY_SEPARATOR, [
drupal_get_path('theme', 'bootstrap5'),
'css',
'style.css',
]);
}
}
/**
* Implements hook_theme_suggestions_HOOK_alter().
*/
......@@ -173,12 +160,12 @@ function bootstrap5_form_system_theme_settings_alter(&$form, FormStateInterface
'#open' => TRUE,
];
$form['text_formats']['b5_ckeditor_enable'] = [
/*$form['text_formats']['b5_ckeditor_enable'] = [
'#type' => 'checkbox',
'#title' => t('CKEditor with bootstrap support'),
'#default_value' => theme_get_setting('b5_ckeditor_enable'),
'#description' => t("Enable bootstrap support inside bootstrap editor. If enabled, containers, cards and other styles will be rendered inside CKEditor."),
];
];*/
$form['subtheme'] = [
'#type' => 'details',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment