vue3-quill-editor
v0.0.23-0
Published
This template should help get you started developing with Vue 3 and Typescript in Vite.
Downloads
167
Readme
Vue 3 Quill Rich Text Editor
Quill for Vue3
Install
npm i vue3-quill-editor
Usage
Global Registration:
// vue - main.js
import Quill from "vue3-quill-editor";
import "vue3-quill-editor/lib/style.css";
app.use(Quill);
In .vue:
<template>
<richTextEditor :toolBarConfig="toolBarConfig" v-model="rawHTML"></richTextEditor>
</template>
<script setup lang="ts">
import { ref } from "vue";
const toolBarConfig = [[{ header: [1, 2, 3, false] }], [{ color: [] }, { background: [] }], ['bold', 'italic', 'underline', 'strike'], [{ align: [] }], ['clean']]
const rawHTML = ref("");
</script>