-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A single paragraph is not centred in the editor #847
Comments
It's an aftermath of ckeditor/ckeditor5-theme-lark@d717139. Because there are situations where the paragraphs have no top margin (like nightly docs), we simply hardcoded it for the first TBH, I'm not sure how to deal with that... |
Can't we add the same CSS rule for the last child? |
You mean some symmetrical bottom margin of the last child to that top margin of the first child? |
This, to be precise: + & > *:last-child {
+ margin-bottom: var(--ck-spacing-standard);
+ } |
Fix: A lone paragraph should be vertically centered in the editor. Closes ckeditor/ckeditor5#847.
CKEditor doesn't set the typography of its content but I remember that some time ago it was ok – a single paragraph was well centred (vertically) within an editable. Why did it change?
The text was updated successfully, but these errors were encountered: