Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bootstrap5-3236564
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
bootstrap5-3236564
Commits
8fe8c7b8
Commit
8fe8c7b8
authored
3 years ago
by
Vladimir Roudakov
Committed by
Vladimir Roudakov
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bootstrap5.info.yml
+3
-0
3 additions, 0 deletions
bootstrap5.info.yml
bootstrap5.theme
+2
-15
2 additions, 15 deletions
bootstrap5.theme
with
5 additions
and
15 deletions
bootstrap5.info.yml
+
3
−
0
View file @
8fe8c7b8
...
...
@@ -8,6 +8,9 @@ libraries:
-
bootstrap5/bootstrap5-js-latest
-
bootstrap5/global-styling
ckeditor_stylesheets
:
-
css/style.css
stylesheets-remove
:
-
'
@classy/css/components/tabs.css'
...
...
This diff is collapsed.
Click to expand it.
bootstrap5.theme
+
2
−
15
View file @
8fe8c7b8
...
...
@@ -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'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment