enhancement: Set RichTextEditor to save content as html#1348
enhancement: Set RichTextEditor to save content as html#1348
Conversation
…package.json and package-lock.json
|
Questions for standup meeting 2026-02-25: write a script that converts all content to just the html or we keep the tiptap way in for now, and still render the html directly if it is available (so we wouldn't have to run the renderHtml function for now aand could just lazy load it until it is really required) Or maybe there is a better solution I am nto thinking of? |
…ith HTML strings for text prop
ivanslabbert
left a comment
There was a problem hiding this comment.
Please add an upgrade script which upgrades all documents with TipTap formatted text fields (important that it should skip docs that already are formatted correctly)
The TipTap components can then also be removed from the client app.
…move frontend TipTap dependencies, and introduce a new database schema upgrade.
…ext distillation.
…d of JSON structures for better rendering consistency
ivanslabbert
left a comment
There was a problem hiding this comment.
Approved with comment
| */ | ||
| function isTipTapJson(text: string): boolean { | ||
| try { | ||
| const parsed = JSON.parse(text); |
There was a problem hiding this comment.
add a check to see if the first char is a "{". If not, assume it is HTML and skip. This should improve the performance of the upgrade script (most docs are formatted in HTML as they were imported from activechristianity.africa).
No description provided.