Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

skill/tiptap: Research-based improvements (Nov 2025 verification)

Jez053b8ce01360
diff --git a/skills/tiptap/SKILL.md b/skills/tiptap/SKILL.md
index 4be3c78b..8acd4f10 100644
--- a/skills/tiptap/SKILL.md
+++ b/skills/tiptap/SKILL.md
@@ -158,6 +158,13 @@ const editor = useEditor({
Image.configure({
inline: true,
allowBase64: false, // ⚠️ Prevent base64 bloat
+ resize: {
+ enabled: true,
+ directions: ['top-right', 'bottom-right', 'bottom-left', 'top-left'],
+ minWidth: 100,
+ minHeight: 100,
+ alwaysPreserveAspectRatio: true,
+ },
}),
Link.configure({
openOnClick: false,
@@ -365,16 +372,22 @@ import { Markdown } from '@tiptap/markdown'
const editor = useEditor({
extensions: [StarterKit, Markdown],
content: '# Hello World\n\nThis is **Markdown**!',
- contentType: 'markdown', // ⚠️ Important: specify content type
+ contentType: 'markdown', // ⚠️ CRITICAL: Must specify or content parsed as HTML
immediatelyRender: false,
})
// Get markdown from editor
-const markdownOutput = editor?.storage.markdown.getMarkdown()
+const markdownOutput = editor.getMarkdown()
+
+// Insert markdown content
+editor.commands.setContent('## New heading', { contentType: 'markdown' })
+editor.commands.insertContent('**Bold** text', { contentType: 'markdown' })
```
**When to use**: Storing content as markdown, displaying/editing rich text
-**Install**: `npm install @tiptap/markdown`
+**Install**: `npm install @tiptap/[email protected]`
+**Status**: Beta (released Oct 2025, API stable but may change)
+**CRITICAL**: Always specify `contentType: 'markdown'` when setting markdown content
### Pattern 3: Form Integration with react-hook-form
diff --git a/skills/tiptap/references/extension-catalog.md b/skills/tiptap/references/extension-catalog.md
index e9dd4f3a..32206167 100644
--- a/skills/tiptap/references/extension-catalog.md
+++ b/skills/tiptap/references/extension-catalog.md
@@ -1,6 +1,7 @@
# Tiptap Extension Catalog
**Last Updated**: 2025-11-29
+**Last Verified**: 2025-11-29 (package versions, markdown API, Image resize option)
Comprehensive catalog of official and community Tiptap extensions.
@@ -48,6 +49,13 @@ Comprehensive catalog of official and community Tiptap extensions.
Image.configure({
inline: true,
allowBase64: false,
+ resize: {
+ enabled: true, // NEW: Drag-and-drop resizing
+ directions: ['top-right', 'bottom-right', 'bottom-left', 'top-left'],
+ minWidth: 100,
+ minHeight: 100,
+ alwaysPreserveAspectRatio: true,
+ },
HTMLAttributes: {
class: 'rounded-lg',
},
@@ -239,17 +247,38 @@ Popular third-party extensions:
### Markdown
**@tiptap/markdown** (Official, Recommended)
-- Markdown parser and serializer
+- Bidirectional markdown parser and serializer
- npm: `@tiptap/[email protected]`
- Import: `import { Markdown } from '@tiptap/markdown'`
-- Status: Stable (v3+)
+- Released: October 15, 2025 (v3.7.0)
+- Status: Beta (API stable but may evolve)
+- Uses MarkedJS for CommonMark-compliant parsing
- Docs: https://tiptap.dev/docs/editor/markdown
+```typescript
+import { Editor } from '@tiptap/core'
+import StarterKit from '@tiptap/starter-kit'
+import { Markdown } from '@tiptap/markdown'
+
+const editor = new Editor({
+ extensions: [StarterKit, Markdown],
+ content: '# Hello World\n\nThis is **Markdown**!',
+ contentType: 'markdown', // ⚠️ CRITICAL: Must specify
+})
+
+// Get markdown output
+const markdown = editor.getMarkdown()
+
+// Insert markdown
+editor.commands.setContent('## New', { contentType: 'markdown' })
+```
+
**tiptap-markdown** (Community, Legacy)
-- Community markdown package
+- Community markdown package (pre-official)
- GitHub: https://github.com/aguingand/tiptap-markdown
-- Note: Maintainer not planning v1 release, consider official package
+- Status: Maintainer not planning v1, recommends official package
+- Recommendation: Use official `@tiptap/markdown` instead
---