Skip to content

Comments

Fix: preserve whitespace and fonts across editors#111

Merged
jankapunkt merged 1 commit intomainfrom
fix/lock-editor-formatting
Mar 11, 2025
Merged

Fix: preserve whitespace and fonts across editors#111
jankapunkt merged 1 commit intomainfrom
fix/lock-editor-formatting

Conversation

@jankapunkt
Copy link
Member

@jankapunkt jankapunkt commented Mar 10, 2025

This fix attempts to address #110 by ensuring to save semantic HTML from editor which contains explicit whitespace characters. Furthermore, fonts are now saved, due to a workaround, as Quill does not correctly register fonts, comprising of multiple words (such as "courier-new").

Finally, editors now generate a hash-sum to allow users inspect content integrity (there are more use cases to it but thats beyond scope of this fix), which also showed a mismatch between preparations-editor and coding-editor, which is also now fixed by using the exact same formatting modules for quill on both.
Note, the integrity of the source is not affected by selections during coding:

Preparations Editor

image

Coding Editor

image

Edit: please no hate against comic sans! 🤡

@jankapunkt jankapunkt self-assigned this Mar 10, 2025
@jankapunkt jankapunkt added this to the Next / Backlog milestone Mar 10, 2025
@jankapunkt jankapunkt linked an issue Mar 10, 2025 that may be closed by this pull request
Copy link
Contributor

@kadewe kadewe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, the content hash is a good idea. We need to explain it in the docs!

@jankapunkt jankapunkt merged commit 9e5b69d into main Mar 11, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

change in formatting when coding

2 participants