Summary
Add a toggle button in the annotation editor toolbar that shows/hides a panel with the plain document text — no annotation highlights or colored spans.
Use Case
In densely annotated biomedical documents, the visual complexity of overlapping highlighted spans can make it hard to read the document. Annotators need to read the plain abstract to understand full context before or during annotation, without the distraction of existing markup.
Proposed Solution
- Toggle button next to document title in toolbar
- Shows/hides a panel above the annotation editor with raw document text
- State persisted in AnnotationPreference.cleanTextMode
- Styled for readability (serif font, justified, comfortable line height)
- Updates via AJAX without full page reload