Browser Editing
- Prose in
rich-textblocks is edited inline with the shared
RichMarkdownEditor, autosaved through update-visual-plan with
contentPatches: [{ op: "update-rich-text", blockId, markdown }].
- The single-document editor saves the whole block list with
replace-blocks
and expectedUpdatedAt, plus allowDestructive, because a block removed there
is the person's own edit. The live Yjs document plan:<planId> is the source of
truth for text: autosave sends pending Yjs updates first (flushUpdates), then
reads the blocks from the document, not from the last keystroke. A
save_conflict carries the newest saved content, so the save three-way merges
those blocks onto it by block id (core's saveWithMerge) and retries. Only
overlapping edits ask the person, with the shared prompt, and the version they
choose goes into the live document. The editor takes in content only when
contentUpdatedAt changes: an optimistic copy, or the saved copy a refetch
brings back over it, is nothing new. seed-plan-collab seeds the empty live
document once, so two editors opening together cannot duplicate the content.
- Local
/local-plans/:slugfolders opened fromPLAN_LOCAL_DIRor a
repo-relative ?path=... use the same Notion-style browser editor, but
autosave through update-local-plan-folder so changes are written to
plan.mdx, canvas.mdx, and prototype.mdx without touching the Plan
database.
- Review annotation mode makes prose temporarily read-only so clicks can pin
feedback. Leaving review mode restores inline prose editing.
- Canvas, artboard, wireframe, diagram, and custom visual edits remain driven by
comments, source patches, or structured content patches rather than direct
rich-text editing.
- Design-mode artboards can be element-edited with
update-visual-plan
`contentPatches: [{ op: "update-design-element-style", frameId, blockId,
elementId, styles }]. Elements must have data-design-id` or
data-plan-design-id; use patch-wireframe-html / patch-prototype-html for
structural or text changes.
Branding
- The sidebar brand header has a
Customize brandingpopover. Treat it as a
source-code request, not plan data: local Code mode edits templates/plan
source directly, while hosted/live surfaces route people to Desktop or
Builder for code customization.
Related Skills
- plan-comments-and-feedback — the review/annotation side of these surfaces.
- plan-source-sync — the MDX files local folder autosave writes to.
- plan-hosted-writes — verification required after each hosted write.