Summary
Some cells return null from getValue() after save/reload.
The cell data is stored in Univer's rich text format ({ p: [{ v: "..." }] }) instead of plain string, causing the standard accessor to miss it.
Reproduction
- Enter Japanese text in a cell
- Save notebook (Ctrl+S)
- Reload the page
getValue() returns null for that cell
Not all cells are affected — seems to depend on Univer's internal decision to store as rich text vs plain value.
Workaround
Added getCellValue helper that checks both v (plain) and p[0].v (rich text) paths.
Root Cause
Likely a Univer-side behavior (not yet reported upstream).
To investigate: under what conditions does Univer choose rich text storage for plain text input.
Related
- Univer version: 0.18.0
- Phase 0 completed, discovered during Phase 1 prep
Summary
Some cells return
nullfromgetValue()after save/reload.The cell data is stored in Univer's rich text format (
{ p: [{ v: "..." }] }) instead of plain string, causing the standard accessor to miss it.Reproduction
getValue()returnsnullfor that cellNot all cells are affected — seems to depend on Univer's internal decision to store as rich text vs plain value.
Workaround
Added
getCellValuehelper that checks bothv(plain) andp[0].v(rich text) paths.[B2026032201]Root Cause
Likely a Univer-side behavior (not yet reported upstream).
To investigate: under what conditions does Univer choose rich text storage for plain text input.
Related