Pages edit WYSIWYG: Notion-style editor replaces the source textarea
TipTap + tiptap-markdown render the document as it will appear; Markdown
stays the only storage/transport format so autosave/version conflicts,
server-side link+embed parsing, revisions, exports and the MCP tools are
all untouched.
- components/page-editor.tsx: edit-in-place blocks, Markdown input rules
(# / ** / [] ), slash block menu, formatting toolbar, GFM tables and
task lists, bare-URL paste offers a titled-link upgrade, superbrain:page
links navigate on click
- {{collection:...}} marker paragraphs render as live PageEmbedCards via a
paragraph node view (components/page-embed-card.tsx, extracted from the
pages client so both can use it without a cycle)
- the Eye/Pencil source<->preview toggle and the textarea are gone;
conflict banner, history restore and recovery drafts drive the editor
through resetContent()
- regressions drive the contenteditable via [data-page-editor] +
select-all + insertText (fill() cannot target contenteditable)
Pages stay Pages (no rename).
This commit is contained in:
@@ -56,6 +56,16 @@
|
||||
"@radix-ui/react-toggle": "1.1.0",
|
||||
"@radix-ui/react-toggle-group": "1.1.0",
|
||||
"@radix-ui/react-tooltip": "1.1.2",
|
||||
"@tiptap/extension-link": "^2",
|
||||
"@tiptap/extension-placeholder": "^2",
|
||||
"@tiptap/extension-table": "^2",
|
||||
"@tiptap/extension-table-cell": "^2",
|
||||
"@tiptap/extension-table-header": "^2",
|
||||
"@tiptap/extension-table-row": "^2",
|
||||
"@tiptap/extension-task-item": "^2",
|
||||
"@tiptap/extension-task-list": "^2",
|
||||
"@tiptap/react": "^2",
|
||||
"@tiptap/starter-kit": "^2",
|
||||
"autoprefixer": "10.4.20",
|
||||
"class-variance-authority": "0.7.0",
|
||||
"clsx": "2.1.1",
|
||||
@@ -77,6 +87,7 @@
|
||||
"react-resizable-panels": "2.1.3",
|
||||
"remark-gfm": "4.0.1",
|
||||
"sonner": "1.5.0",
|
||||
"tiptap-markdown": "^0.9.0",
|
||||
"vaul": "1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
Reference in New Issue
Block a user