A note records whether it is rich text or plain text

Featurekamo-shared-library
Shipped
August 14, 2026 at 7:50 PM UTC
Author
Kamo
Commit
4255b5f

The mode cannot be derived from the content. A rich note the member has not formatted yet serializes byte-for-byte identically to a plain one — both are a Lexical document of unstyled paragraphs — so without somewhere to keep it, the editor loses its toolbar every time the note is reopened. Defaults to rich, and the column is backfilled to TRUE, because every note that predates the flag was authored in the rich editor; it was the only one there was. Backfilling to FALSE would present formatted notes as plain and invite the member to flatten them. Nullable on purpose, with isRichTextOrDefault() reading an unset flag as rich: a row that somehow escapes the backfill should err towards keeping formatting, not towards discarding it.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing