Skip to content

7uvss/vue3-quill-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue 3 Quill Rich Text Editor

Quill for Vue3

Demo

https://7uvss.github.io/vue3-quill-editor/

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>

About

Vue3 Quill Rich Text Editor

Resources

Stars

Watchers

Forks