Environment:0xranx OpenContext Tiptap
| Knowledge Sources | |
|---|---|
| Domains | Frontend, Editor |
| Last Updated | 2026-10-24 10:00 GMT |
Overview
Tiptap 3.x rich text editor framework for the OpenContext markdown editor, including custom node extensions for idea references.
Description
This environment provides the Tiptap 3.x editor framework used by OpenContext's `TiptapMarkdown.jsx` component for markdown editing and viewing. It includes starter-kit, table, code-block, image, link, task-list, and placeholder extensions. A custom `IdeaRefBlock` node extension enables inline idea references within documents.
Usage
Use this environment for the markdown editor and any custom Tiptap node extensions. It is the prerequisite for the `IdeaRefBlock` implementation which defines a custom Tiptap node for embedding idea references.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Cross-platform | Runs in browser/Tauri WebView |
| Hardware | Any modern CPU | Browser-based rendering |
| Disk | Included in node_modules | ~50MB for all Tiptap packages |
Dependencies
npm Packages
- `@tiptap/react` >= 3.14.0
- `@tiptap/pm` >= 3.14.0
- `@tiptap/starter-kit` >= 3.14.0
- `@tiptap/extension-table` >= 3.14.0 (+ cell, header, row)
- `@tiptap/extension-code-block` >= 3.18.0
- `@tiptap/extension-link` >= 3.14.0
- `@tiptap/extension-image` >= 3.14.0
- `@tiptap/extension-placeholder` >= 3.14.0
- `@tiptap/extension-task-list` >= 3.14.0 (+ task-item)
- `@tiptap/extension-bubble-menu` >= 3.14.0
- `@tiptap/extension-floating-menu` >= 3.14.0
- `@tiptap/extension-horizontal-rule` >= 3.14.0
- `@tiptap/extension-typography` >= 3.14.0
- `@tiptap/extension-table-of-contents` >= 3.14.0
- `@tiptap/suggestion` >= 3.14.0
- `tiptap-markdown` >= 0.9.0
Credentials
No credentials required.
Quick Install
# All Tiptap packages are included in the root package.json
npm install
# The editor is bundled in the UI build
npm run ui:build
Code Evidence
Tiptap dependencies from `package.json:85-103`:
"@tiptap/react": "^3.14.0",
"@tiptap/pm": "^3.14.0",
"@tiptap/starter-kit": "^3.14.0",
"@tiptap/extension-table": "^3.14.0",
"@tiptap/extension-code-block": "^3.18.0",
Custom IdeaRefBlock node from `src/ui/src/editor/tiptap/IdeaRefBlock.js:7-160`:
import { Node, mergeAttributes } from '@tiptap/core'
export const IdeaRefBlock = Node.create({
name: 'ideaRefBlock',
group: 'inline',
inline: true,
atom: true,
// ... custom node view for idea references
})
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `Cannot read property 'create' of undefined` | Tiptap extension not properly imported | Check import path matches `@tiptap/extension-*` |
| Markdown not rendering correctly | `tiptap-markdown` extension missing | Ensure `tiptap-markdown` is installed |
Compatibility Notes
- Tiptap 3.x: API changed significantly from Tiptap 2.x. Node views, extensions, and schemas use the new API.
- Code block: Uses `@tiptap/extension-code-block` 3.18.0 which includes `HighlightJsExtension` for syntax highlighting.