项目
在 GitHub 查看
vueup/vue-quill
关于
适用于 Vue 3 的富文本编辑器组件。
开发工具实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- 0
- 1个月
- -2
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文VueQuill
Rich Text Editor Component for Vue 3.
🔎 Overview
VueQuill is a Vue 3 component for building rich text editors with Quill.
- 💚 Built With Vue 3: More powerful and performant framework than ever before.
- 🧙♂️ Fully TypeScript: VueQuill source code is written entirely in TypeScript.
- 🛠️ Easy To Use: Straightforward implementation through a simple API.
- 📦 Quill 2 Ready: Includes Quill 2 as a dependency and exposes the underlying Quill instance when you need it.
- 🖥️ SSR Friendly: Can be imported in Vue SSR applications and initializes Quill in the browser.
🚀 Quick Start
Install VueQuill with your package manager:
npm install @vueup/vue-quill@latest
# or
yarn add @vueup/vue-quill@latest
# or
pnpm add @vueup/vue-quill@latest
Use the component in a Vue single-file component and import the theme stylesheet you want:
<script setup>
import { ref } from 'vue'
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css'
const content = ref('<p>Hello VueQuill!</p>')
</script>
<template>
<QuillEditor
v-model:content="content"
content-type="html"
theme="snow"
toolbar="minimal"
/>
</template>
That is enough for a basic editor. Remember to import a theme stylesheet (snow or bubble) and set content-type when binding HTML or plain text content.
📚 Documentation
👏 Contributing
Pull requests are welcome. For major changes, please create a new discussion first about what you would like to change.
📝 License
探索相关项目
加载中…