Skip to main content

Module note_editor

Module note_editor 

Source
Expand description

写笔记与编辑笔记(/admin/notes/new、/admin/notes/edit/:id)。

与写文章同一套无干扰版式:页头(返回、保存状态、查看公开页面、预览、设置、保存) 替代后台顶栏;类型分段、衬线标题与 Tiptap 正文居中;右侧设置抽屉是版本面板 (工作稿、公开版、AI 知识库)、笔记本、标签与历史版本。工作稿停止输入后自动保存, 公开与知识库快照只由明确操作更新。样式沿用 styles/pages/admin-write.css, 笔记专属部分在 admin-notes.css。数据只在浏览器鉴权后读取。

Modules§

composer 🔒
history 🔒
metadata 🔒
save 🔒
One serialized save pipeline for autosave, explicit actions and revision restoration. Explicit actions report through toasts; plain saves only update the header status.
state 🔒

Structs§

EditNoteRoute
/admin/notes/edit/:id。
LoadNoteEditorProps 🔒
Props for the LoadNoteEditor component.
NewNoteRoute
/admin/notes/new。
NoteEditorProps 🔒
Props for the NoteEditor component.

Enums§

LoadFailure 🔒
加载失败的两种形态:笔记不存在,或其他错误(可重试)。

Functions§

LoadNoteEditor 🔒
Required Props
NoteEditor 🔒
Required Props
__EditNoteRoute_View 🔒
__NewNoteRoute_View 🔒