docs: record writing-view UI-disappears fix in PLAN and CHUNK#3 progress
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
**Status:** In progress. Steps 1–3 committed. Step 4 (polish) in progress.
|
||||
|
||||
## Bug fixes
|
||||
- [x] **UI disappears when navigating to Write** — WritingView passed `chapter.doc.content` (a bare ProseMirror node array) as editor `content`, so `EditorState.create` built a doc node with an undefined type and threw `Cannot read properties of undefined (reading 'schema')`, unmounting the write view. Fixed by passing the full doc object (`{ type: 'doc', content }`) on init and on `setContent` sync. Verified in a headless browser: editor renders the seeded chapter ("The Glass Harbor") with no console errors. Regression tests in `packages/editor/src/use-editor-doc.test.ts`.
|
||||
|
||||
## Progress
|
||||
- [x] Step 1: Editor package (TipTap 3 schema, wrapper, markdown, key bindings) — committed
|
||||
- [x] Step 2: Writing view in apps/web wired to storage adapter
|
||||
|
||||
Reference in New Issue
Block a user