Skip to content

Commit

Permalink
fix some issues with ckeditor content not shown correctly
Browse files Browse the repository at this point in the history
- add missing <i> tag to allow italic in Bleach config
- add missing css for text sizing via ckeditor

fixes #5925
  • Loading branch information
goapunk authored and m4ra committed Jan 13, 2025
1 parent 669cac7 commit faabbd7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog/5925.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Changed

- add ckeditor text size css to make text sizing work
- add <i> tag to `collapsible-image-editor` Bleach config to allow italic text
20 changes: 20 additions & 0 deletions meinberlin/assets/extra_css/_ckeditor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,23 @@
.ck-content .image-inline.image-style-align-right {
margin-left: var(--ck-inline-image-style-spacing);
}

/* @ckeditor/ckeditor5-font/theme/fontsize.css */
.ck-content .text-tiny {
font-size: .7em;
}

/* @ckeditor/ckeditor5-font/theme/fontsize.css */
.ck-content .text-small {
font-size: .85em;
}

/* @ckeditor/ckeditor5-font/theme/fontsize.css */
.ck-content .text-big {
font-size: 1.4em;
}

/* @ckeditor/ckeditor5-font/theme/fontsize.css */
.ck-content .text-huge {
font-size: 1.8em;
}
1 change: 1 addition & 0 deletions meinberlin/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@
"em",
"figcaption",
"figure",
"i",
"iframe",
"img",
"li",
Expand Down

0 comments on commit faabbd7

Please sign in to comment.