The RichTextEditor is a powerful, extensible rich text editor built on Tiptap. It includes healthcare-specific extensions for citations, page breaks, and document formatting, making it ideal for creating medical reports, clinical notes, and other healthcare documentation.
The citation system allows linking text segments to source documents:
Copy
// Citations are created by wrapping text in citation-paragraph elementsconst citedText = `<p>According to the lab results <citation-paragraph data-citations='[{"documentId": "lab-123", "pageNumber": 2, "section": "Blood Work"}]'>the patient's glucose levels are within normal range</citation-paragraph>.</p>`;