Claude b4eb534417 fix: 修复上传下拉菜单不消失问题,新增批量图片上传和视频上传支持
- 修复点击上传选项后下拉菜单不消失的 bug(ToolbarDropdownButton 显式关闭 dropdown)
- 图片上传支持批量选择多个文件(添加 multiple 属性)
- 新增视频上传功能:Video 节点扩展 + 视频上传入口
- 新增中/英/繁体三语视频相关翻译

https://claude.ai/code/session_01Hr9pgvogG36bJNv3oVbpHW
2026-02-11 15:40:04 +00:00
2026-02-08 21:54:23 +08:00
2026-02-08 21:28:23 +08:00
2026-02-08 21:28:23 +08:00
2026-02-08 21:28:23 +08:00
2026-02-08 21:28:23 +08:00
2026-02-08 21:28:23 +08:00

Tiptap UI Kit

Tiptap UI Kit Vue License NPM

A production-ready, AI-powered rich text editor for Vue 3

Built on Tiptap 3 and Vue 3

🌐 Live Demo · 📚 Documentation · ✨ Features · 🤝 Contributing


⭐ Star us on GitHub — it motivates us a lot!

GitHub stars GitHub forks


🌟 Why Tiptap UI Kit?

Tiptap UI Kit is a fully open-source, production-ready rich text editor that brings together the best of modern web technologies. Unlike other editors, we offer:

  • 🎨 5 Beautiful Theme Presets - From Notion-like to Word-style
  • 🤖 AI-Powered Features - Smart writing assistance built-in
  • 🌓 Perfect Dark Mode - Seamless light/dark theme switching
  • 🛠️ Modular Architecture - Use only what you need
  • 🌍 i18n Ready - Chinese (Simplified/Traditional) and English support
  • 💯 100% Free & Open Source - MIT licensed

Perfect for building modern document editors, content management systems, note-taking apps, or any application requiring rich text editing capabilities.


✨ Features

🎨 Core Features

  • Premium Themes - 5 professionally designed theme presets:

    • Default - Clean and minimal
    • Word - Microsoft Word-like professional layout with A4 pages
    • Notion - Modern, distraction-free editing experience
    • GitHub - Developer-friendly markdown style
    • Typora - Elegant reading and writing
  • Dark Mode - Full light/dark mode support with smooth transitions

  • Word Mode - Professional A4 paper layout with automatic pagination

  • Modular Architecture - Enable only the features you need, keep bundle size small

  • Internationalization - Built-in support for:

    • 简体中文 (Simplified Chinese)
    • 繁體中文 (Traditional Chinese)
    • English
  • Accessible - WCAG compliant with full keyboard navigation

✏️ Rich Text Editing

  • Text Formatting - Bold, italic, underline, strikethrough, code, highlight
  • Headings - H1-H6 with custom styles per theme
  • Lists - Ordered, unordered, and task lists with nested support
  • Text Alignment - Left, center, right, justify
  • Colors - Text color, background color, and highlight with color picker
  • Images - Upload, resize, drag-to-adjust with intuitive controls
  • Links - Smart link editing with preview bubble
  • Tables - Full-featured table support with merge, split, and styling
  • Code Blocks - Syntax highlighting powered by Lowlight
  • Typography - Font family, size, line height control
  • Special Formats - Subscript, superscript, format painter
  • Math Formulas - KaTeX-powered inline and block math equations

🤖 AI-Powered Features

Note: AI features work with any OpenAI-compatible API. Configure your own API key in the AI Settings.

  • ✨ Continue Writing - AI completes your sentences and paragraphs intelligently
  • 📝 Polish Text - Improve grammar, clarity, and style automatically
  • 🌐 Translation - Translate to 14+ languages with one click
  • 📄 Summarize - Extract key points from long text
  • 🤖 Custom AI Commands - Define your own AI transformations

Supported AI Providers:

  • OpenAI (GPT-4, GPT-3.5)
  • 阿里云通义千问 (Aliyun Qianwen)
  • DeepSeek
  • Ollama (local deployment)
  • Any OpenAI-compatible API

🚀 Advanced Features

  • Real-time Collaboration - Multi-user editing powered by Yjs
  • Drag & Drop - Intuitive content reordering with visual feedback
  • Search & Replace - Find and replace text across the document
  • Keyboard Shortcuts - Productivity-focused shortcuts for power users
  • Responsive Design - Optimized for mobile, tablet, and desktop
  • Preview Mode - Read-only rendering for content review
  • Zoom Control - Scale from 50% to 200%
  • Version History - Track and restore previous versions
  • Format Painter - Copy formatting across content
  • Paste Support - Smart paste from Word, Excel, and web pages

📦 Installation

From GitHub

# Using npm
npm install benngaihk/Tiptap-UI-Kit

# Using pnpm (recommended)
pnpm add benngaihk/Tiptap-UI-Kit

# Using yarn
yarn add benngaihk/Tiptap-UI-Kit

Peer Dependencies

Tiptap UI Kit requires the following peer dependencies:

pnpm add @tiptap/core @tiptap/pm @tiptap/starter-kit @tiptap/vue-3 vue

🚀 Quick Start

Basic Usage

<template>
  <TiptapProEditor
    v-model="content"
    :theme="theme"
    :locale="locale"
  />
</template>

<script setup>
import { ref } from 'vue'
import { TiptapProEditor } from 'tiptap-ui-kit'
import 'tiptap-ui-kit/style.css'

const content = ref('<p>Hello Tiptap UI Kit!</p>')
const theme = ref('notion')  // default | word | notion | github | typora
const locale = ref('en-US')   // en-US | zh-CN | zh-TW
</script>

With AI Features

<template>
  <TiptapProEditor
    v-model="content"
    :ai-config="{
      provider: 'openai',
      apiKey: 'your-api-key',
      model: 'gpt-4o-mini'
    }"
  />
</template>

🔒 Security Note: Never hardcode API keys in production. Use environment variables or let users configure their own keys via the AI Settings modal.

Advanced Configuration

<template>
  <TiptapProEditor
    v-model="content"
    :theme="theme"
    :locale="locale"
    :readonly="false"
    :word-mode="true"
    :dark-mode="isDark"
    :show-toolbar="true"
    :show-footer="true"
    :placeholder="'Start writing...'"
    @update:modelValue="handleUpdate"
  />
</template>

<script setup>
import { ref } from 'vue'
import { TiptapProEditor } from 'tiptap-ui-kit'
import 'tiptap-ui-kit/style.css'

const content = ref('')
const theme = ref('word')
const locale = ref('zh-CN')
const isDark = ref(false)

const handleUpdate = (newContent) => {
  console.log('Content updated:', newContent)
}
</script>

📚 Documentation

Themes

Tiptap UI Kit comes with 5 professionally designed themes:

Theme Description Best For
default Clean and minimal design General purpose editing
word Microsoft Word-like with A4 pages Formal documents, reports
notion Modern, distraction-free Note-taking, knowledge base
github Developer-friendly markdown Technical documentation
typora Elegant reading/writing Long-form content, blogs
<TiptapProEditor theme="notion" />

Localization

Supported languages: en-US, zh-CN, zh-TW

<TiptapProEditor locale="zh-CN" />

AI Configuration

Configure AI features via props or the built-in settings modal:

interface AiConfig {
  provider: 'openai' | 'aliyun' | 'deepseek' | 'ollama'
  apiKey: string
  baseUrl?: string  // Optional custom endpoint
  model?: string    // Optional model name
}

API Reference

Full API documentation is available in the API.md file.


🛠️ Development

Setup

# Clone the repository
git clone https://github.com/benngaihk/Tiptap-UI-Kit.git
cd Tiptap-UI-Kit

# Install dependencies
pnpm install

# Start development server
pnpm dev

Build

# Build library
pnpm build

# Build demo site
pnpm build:demo

# Run type checking
pnpm typecheck

# Run tests
pnpm test

Project Structure

src/
├── ai/                  # AI features (continue writing, polish, etc.)
├── core/                # Core editor components
├── extensions/          # Tiptap extensions
├── features/            # Toolbar features (basic & advanced)
├── locales/             # Internationalization
├── themes/              # Theme presets
├── tools/               # Optional tools (collaboration, etc.)
└── ui/                  # Reusable UI components

🤝 Contributing

We love contributions! Whether it's bug reports, feature requests, or pull requests - all contributions are welcome.

How to Contribute

  1. 🍴 Fork the repository
  2. 🌿 Create your feature branch (git checkout -b feature/amazing-feature)
  3. 💾 Commit your changes (git commit -m 'Add amazing feature')
  4. 📤 Push to the branch (git push origin feature/amazing-feature)
  5. 🎉 Open a Pull Request

Please read our Contributing Guide for more details.

Development Guidelines

  • Write clear commit messages
  • Add tests for new features
  • Update documentation as needed
  • Follow the existing code style
  • Ensure all tests pass before submitting

🐛 Bug Reports & Feature Requests

Found a bug or have a feature request?


💖 Support the Project

If you find Tiptap UI Kit useful, please consider:

  • ⭐ Star the repository - It helps others discover the project!
  • 🐦 Share on social media - Spread the word!
  • ☕ Buy me a coffee - Your support keeps me motivated!

☕ 请作者喝杯咖啡 | Buy Me a Coffee

Sponsor

您的支持是我创作的动力!Your support motivates my creation!


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

TL;DR: You can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software. Free for commercial and personal use! 🎉


🙏 Acknowledgments

Built with these amazing technologies:

Special thanks to all our contributors!


📮 Contact


Made with ❤️ by the open source community

If you like this project, please give it a ⭐!

⬆ Back to Top

S
Description
No description provided
Readme MIT
2.9 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 46.7%
Vue 39%
CSS 12%
HTML 2.3%