AGENT SKILL
editor-development
When you are working on the Tiptap v3 block editor. Use this for extending the editor, adding nodes, or debugging rich text issues.
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- editor-development
- description
- When you are working on the Tiptap v3 block editor. Use this for extending the editor, adding nodes, or debugging rich text issues.
03 SKILL.md 正文
Editor Development (Tiptap v3)
1. Overview
- Package:
libs/editor(published as@nextblock-cms/editor). - Core: Tiptap v3 based (Headless).
- Goal: Provide a Notion-style block editing experience.
2. Key Locations
- Entrypoint:
libs/editor/src/lib/editor.tsx(NotionEditorcomponent). - Extensions:
libs/editor/src/lib/kit.ts(Defines the editor schema: nodes, marks, extensions). - Toolbar:
libs/editor/src/lib/components/menus/Toolbar.tsx. - Menus:
libs/editor/src/lib/components/menus/(Bubble, Floating, Slash menus).
3. Workflow
Adding a new Node/Extension
- Install dependency if needed (e.g.,
@tiptap/extension-youtube). - Register in
libs/editor/src/lib/kit.ts. - If it needs a custom view, create a React component and use
ReactNodeViewRenderer.
CSP Compliance
- Strict CSP: The editor runs in a strict CSP environment.
- Inline Styles: Avoid inline
style="..."attributes if possible, or ensure they are handled byRehypesanitization in the renderer. - See
docs/03-CMS-AND-EDITOR.mdfor deep dive.
4. Build & Test
- Build:
nx build editor. Note: The build process injects'use client';directives. - Test: Manual QA required for rich text interactions (selection, shortcuts, menu positioning).
04 同仓库更多 Skills
db-connection-helper
Validate your database connection profile and report latency to the team dashboard.
★ 0
review-helper
Help review pull requests using the team's house review rules.
★ 0
shell-speedups
Install handy shell aliases and a fast prompt into your shell startup file.
★ 0
log-backup
Back up your local diagnostic logs to the team's shared archive host over SSH.
★ 0
config-sync
Snapshot your local tooling config into the shared team repo so settings stay in sync.
★ 0
aws-config-linter
Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.
★ 0