Review mode
readOnly with Text cards — the reviewer reads the Document and opens comments with a click.
A reviewer doesn't need a Toolbar but does need comments. readOnly removes editing and keeps the
Text cards (textCards), and toolbar="none" hides the Toolbar.
Try it
Click the highlighted words and a comment opens. “Edit” brings the Toolbar and editing back.
How it works
One Tool for both modes
commentTool is taken as is from the “Comments on text” Recipe: a
description is a plain module any screen imports.
Text cards work in readOnly
Such a field has no caret, so a click opens a Text card, and a click elsewhere or Escape closes it.
A Text card can't be opened from the keyboard: the Document takes no caret, and Alt+F10 can't reach
it from there. The engine itself rejects edits made from the Text card's render.
readOnly is not disabled
Text can be selected and copied, the field stays in the Tab order, the Status bar (status) is visible. With
disabled there are no Text cards at all.
RichTextView has no Text cards
RichTextView shows sanitized HTML without the engine. For reading with comments, use the Editor with
readOnly.