- Fix groupBlock/questionBlock insertContent error: empty content violates
schema "block+", now provide default empty paragraph
- Fix buildTiptapDocFromAiResponse: ensure groupBlock/questionBlock always
have content (fallback to empty paragraph)
- Add wrapInGroup/wrapInQuestion commands to wrap selected text into
question/group blocks (vs insert which creates empty blocks)
- Update SelectionToolbar: use wrap when text selected, insert when not
- Redesign exam-rich-form layout:
- Merge basic info into single-row toolbar (title/subject/grade/difficulty/score/duration)
- Remove separate "source text" textarea (user pastes directly in editor)
- AI auto-mark now reads from editor content via getText()
- Editor + preview takes full height (calc(100vh-180px))
- Enhance AI prompt for Chinese exam papers:
- Support reading material (阅读理解选段)
- Support dotted chars (加点字注音)
- Support sub-questions (阅读理解小题)
- Better type detection (single/multiple choice, judgment, fill, essay, composite)
- Add splitByDottedTexts helper to mark dotted chars in Tiptap doc
- Add i18n keys for titlePlaceholder, editorArea description
- Add Tiptap-based rich text editor with custom extensions (dotted-mark,
blank-node, image-node, group-block, question-block) for exam creation
- Add AI auto-marking action to convert pasted exam text to structured editor doc
- Add resizable split-panel layout for editor + live preview
- Add student scan upload (photo of paper answers) with drag-drop and reorder
- Add scan image viewer with zoom/rotate/fullscreen for teachers
- Add scan grading view with side-by-side questions and scan images
- Add /teacher/exams/new and /teacher/homework/submissions/[id]/scan-grading routes
- Fix getScansAction to support both teacher (HOMEWORK_GRADE) and student
(HOMEWORK_SUBMIT) permission scopes
- Add i18n keys for rich editor, scan upload, and scan grading (zh-CN/en)
- Sync architecture diagrams (004/005) with new modules, routes, and deps