You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/updating/update-to-46.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,35 @@ Released on xxx, 2025. ([See full release notes](https://github.com/ckeditor/cke
20
20
21
21
Below are the most important changes that require your attention when upgrading to CKEditor 5 v46.0.0.
22
22
23
+
### Introduction of the default content styles
24
+
25
+
To improve the out-of-the-box experience and accessibility, we are introducing opinionated defaults for content styling. From this version, we ship a small defaults layer applied to `.ck-content`:
Those content styles are easily replaceable via CSS variable override. It is possible that you already style those things with more specific selectors but we recommend to use the variables from now on.
47
+
You can read more about the reasons in our [GitHub issue](https://github.com/ckeditor/ckeditor5/issues/18710).
48
+
49
+
**Migration:**
50
+
* If you notice that the new editor's content styling affected your content appearance, make sure to update your custom style sheet, and use the new variable names.
51
+
23
52
### Content area CSS variables renamed to `--ck-content-*` prefix
24
53
25
54
To improve consistency, all CSS variables that affect the styles of the editor content area ("content styles") have been renamed to use the `--ck-content-*` prefix. This change affects variables used for highlights, image captions, mentions, table captions, image style spacing, and to-do list checkmarks.
0 commit comments