Align the content in the body field to left, right, center or to justify it with CKEditor

Created on 15 November 2021, about 3 years ago
Updated 27 June 2024, 5 months ago

I created a sub theme and there ist a component css

.node--view-mode-full .w3-container.node__content .field--name-body p {
text-align: justify;
}

as I like to float the content left, I added

.node--view-mode-full .w3-container.node__content .field--name-body p {
text-align: left;
}

to my sub_theme.css

when I use CK-Editor to set for example text-align-center in a node, the theme overrides the css of CK-editor.

What is the best solution for having all body contents left aligned, but the option to customize some layouts with CK-editor?

πŸ’¬ Support request
Status

Fixed

Version

1.22

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024