Skip to content

Render public_description as rich text (HTML)#20

Open
apodacaduron wants to merge 6 commits into
mainfrom
cleanup-unused-files-and-add-rich-text-rendering
Open

Render public_description as rich text (HTML)#20
apodacaduron wants to merge 6 commits into
mainfrom
cleanup-unused-files-and-add-rich-text-rendering

Conversation

@apodacaduron

@apodacaduron apodacaduron commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

public_description comes from TinyMCE so it's HTML, but we were stripping all tags before rendering it. Added a safe_html filter and scoped .rich-text CSS so formatting, bidirectional text, and tables all render correctly. Also cleaned up the old unused document_detail.html and its partial.

How to Test

  1. Open a document with a SJAC Context field
  2. Check that formatting (headings, bold, lists, tables) renders correctly
  3. Check that mixed Arabic/English text aligns correctly per block

Jira ID (if applicable)

[e.g., BYNT-123]

@apodacaduron apodacaduron self-assigned this Jun 9, 2026
@apodacaduron apodacaduron requested a review from level09 June 9, 2026 01:36
@apodacaduron apodacaduron marked this pull request as ready for review June 9, 2026 01:36
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