Skip to content

Parse escaped quotes (") in ckeditor output correctly.#5487

Merged
ThiefMaster merged 5 commits into
indico:masterfrom
tomasr8:ckeditor-escaped-quotes
Sep 6, 2022
Merged

Parse escaped quotes (") in ckeditor output correctly.#5487
ThiefMaster merged 5 commits into
indico:masterfrom
tomasr8:ckeditor-escaped-quotes

Conversation

@tomasr8
Copy link
Copy Markdown
Member

@tomasr8 tomasr8 commented Sep 5, 2022

Seems like ckeditor4 (and maybe 5) escapes quotes in font family names.
The css sanitizer doesn't like this and throws the quotes out which in turn breaks the styles altogether.

Related ckeditor issue: ckeditor/ckeditor4#2750

@ThiefMaster
Copy link
Copy Markdown
Member

a unit test for this would be nice

@ThiefMaster
Copy link
Copy Markdown
Member

and maybe also a bugfix entry in the 3.2.1 changelog?

@ThiefMaster ThiefMaster added this to the v3.2 milestone Sep 5, 2022
Comment thread CHANGES.rst Outdated
Comment thread indico/util/string.py Outdated
@ThiefMaster ThiefMaster enabled auto-merge (squash) September 6, 2022 15:26
@ThiefMaster ThiefMaster merged commit 9ef3260 into indico:master Sep 6, 2022
@ThiefMaster ThiefMaster deleted the ckeditor-escaped-quotes branch September 6, 2022 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants