-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Align content area CSS variables to --ck-content-* prefix. #18749
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
Merged
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4381c31
Align content area CSS variables to --ck-content-* prefix.
Witoso 0843636
Fix test.
Witoso 9d3f34b
Merge branch 'master' into ck/18710
Witoso 219271d
Fix the table variables.
Witoso d4eee70
Restore the docs.
Witoso 1c245ea
Docs: minor fixes. [short flow]
godai78 5ba169f
Docs: structure fix. [skip ci]
godai78 fbaad04
Update the structure.
Witoso File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| --- | ||
| category: update-guides | ||
| meta-title: Update to version 45.x | CKEditor 5 Documentation | ||
| menu-title: Update to v45.x | ||
| order: 79 | ||
| meta-title: Update to version 46.x | CKEditor 5 Documentation | ||
| menu-title: Update to v46.x | ||
| order: 78 | ||
| modified_at: 2025-06-16 | ||
| --- | ||
|
|
||
|
|
@@ -14,14 +14,49 @@ modified_at: 2025-06-16 | |
| You may try removing the `package-lock.json` or `yarn.lock` files (if applicable) and reinstalling all packages before rebuilding the editor. For best results, make sure you use the most recent package versions. | ||
| </info-box> | ||
|
|
||
| ## Update to CKEditor 5 v46.0 | ||
| ## Update to CKEditor 5 v46.0.0 | ||
|
|
||
| Released on xxx, 2025. ([See full release notes](https://github.com/ckeditor/ckeditor5/releases/tag/v46.0.0)) | ||
|
|
||
| Below are the most important changes that require your attention when upgrading to CKEditor 5 v46.0.0. | ||
|
|
||
| ### First heading | ||
|
|
||
| ### Major breaking changes in this release | ||
|
|
||
| #### Content area CSS variables renamed to --ck-content-* prefix | ||
|
|
||
| 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 todo list checkmarks. | ||
|
|
||
| | Old variable name | New variable name | | ||
| |---------------------------------------------|---------------------------------------------------| | ||
| | `--ck-highlight-marker-yellow` | `--ck-content-highlight-marker-yellow` | | ||
| | `--ck-highlight-marker-green` | `--ck-content-highlight-marker-green` | | ||
| | `--ck-highlight-marker-pink` | `--ck-content-highlight-marker-pink` | | ||
| | `--ck-highlight-marker-blue` | `--ck-content-highlight-marker-blue` | | ||
| | `--ck-highlight-pen-red` | `--ck-content-highlight-pen-red` | | ||
| | `--ck-highlight-pen-green` | `--ck-content-highlight-pen-green` | | ||
| | `--ck-color-image-caption-background` | `--ck-content-color-image-caption-background` | | ||
| | `--ck-color-image-caption-text` | `--ck-content-color-image-caption-text` | | ||
| | `--ck-color-mention-background` | `--ck-content-color-mention-background` | | ||
| | `--ck-color-mention-text` | `--ck-content-color-mention-text` | | ||
| | `--ck-color-selector-caption-background` | `--ck-content-color-selector-caption-background` | | ||
| | `--ck-color-selector-caption-text` | `--ck-content-color-selector-caption-text` | | ||
|
||
| | `--ck-image-style-spacing` | `--ck-content-image-style-spacing` | | ||
| | `--ck-inline-image-style-spacing` | `--ck-content-inline-image-style-spacing` | | ||
| | `--ck-todo-list-checkmark-size` | `--ck-content-todo-list-checkmark-size` | | ||
| | `--ck-table-of-contents-padding` | `--ck-content-table-of-contents-padding` | | ||
| | `--ck-table-of-contents-line-height` | `--ck-content-table-of-contents-line-height` | | ||
| | `--ck-table-of-contents-items-start-padding` | `--ck-content-table-of-contents-items-start-padding` | | ||
|
|
||
| **Migration:** | ||
| - Update your custom stylesheets, themes, and integrations to use the new variable names. | ||
| - The old variable names are no longer supported and will not have any effect. | ||
|
|
||
| Example: | ||
| ```css | ||
| :root { | ||
| --ck-content-highlight-marker-yellow: #fdfd77; | ||
| --ck-content-color-image-caption-background: hsl(0, 0%, 97%); | ||
| } | ||
| ``` | ||
|
|
||
| ### Minor breaking changes in this release | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.