JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q61742F
  • License MIT

Package Exports

  • vue3-tiptap
  • vue3-tiptap/dist/vue3-tiptap.js
  • vue3-tiptap/dist/vue3-tiptap.umd.cjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue3-tiptap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Vue3-Tiptap ⚡

Based on Vue3 +Ant-Design-Vue+Tiptap secondary development of a rich text editor with common functions

vue3-editor

English | 简体中文

Quick Experience

Online preview github

Editor Function

  • ✅ Undo/Redo
  • ✅ Clear format
  • ✅ Underline
  • ✅ Picture
  • ✅ List
  • ✅ Form
  • ✅ Alignment
  • ✅ Font
  • ✅ Title
  • ✅ Background color
  • ✅ Font color
  • ✅ Line height
  • ✅ child number
  • ✅ Format swipe
  • ✅ Code block
  • ✅ Find and replace
  • ✅ Bold

🔨 Quick to use

Please install first Ant Design Vue Portal

npm i vue3-tiptap
or
pnpm  i vue3-tiptap
  • Introduce in components
<script setup lang="ts">
import { ref } from "vue";
import Vue3TipTap from "vue3-tiptap";
import "vue3-tiptap/dist/vue3-tiptap.css";

const content = ref(
    "<h1>欢迎使用 Vue3 TipTap 富文本编辑器!</h1><p>这是一个功能强大的富文本编辑器,支持多种格式化选项。</p>"
);
const handleUpdate = (newContent: string) => {
    console.log("内容更新:", newContent);
};
</script>

<template>
    <div class="editor-container">
        <Vue3TipTap v-model:content="content" @update:content="handleUpdate" />
    </div>
</template>

installation dependency 📦

pnpm install or npm install

run project 🚀

npm run dev

Technology Stack 🥇

core:vue3 + ant-design-vue + vite

commit:husky、commitlint

code formatting:preitter

Thanks. 🌸

The project is mainly based on the following projects

Change Log 📄

  • 2024.03.15 version 1.0.0
  • 2025.04.15 version 2.0.0 Refactor project using TypeScript