@gits-id/quill-editor
Quill Editor Component
VueQuill integrated with vee-validate.
Installation
Install with your prefered Package Manager.
npm
npm i @gits-id/quill-editor
yarn
yarn add @gits-id/quill-editor
pnpm
pnpm i @gits-id/quill-editor
Usage
Basic Usage
<script setup lang="ts">
import {VQuillEditor} from '@gits-id/quill-editor';
import '@gits-id/quill-editor/dist/style.css';
const content = ref('');
</script>
<template>
<VQuillEditor
v-model="content"
name="content"
label="Content"
placeholder="Input your content"
/>
<pre>{{ {content} }}</pre>
</template>
Validation Example
<script setup lang="ts">
import {VQuillEditor} from '@gits-id/quill-editor';
import {useForm} from 'vee-validate';
import {object, string} from 'yup';
import VBtn from '@gits-id/button';
import '@gits-id/quill-editor/dist/style.css';
const schema = object({
content: string().required().label('Content'),
});
const {handleSubmit, resetForm, values} = useForm({
validationSchema: schema,
});
const onSubmit = handleSubmit((values) => {
alert(JSON.stringify(values));
});
</script>
<template>
<form @submit="onSubmit" class="border-none">
<VQuillEditor
name="content"
label="Content"
placeholder="Input your content"
/>
<div class="mt-4">
<v-btn type="submit">Submit</v-btn>
<v-btn type="button" text @click="resetForm">Reset</v-btn>
</div>
<pre>{{ { values } }}</pre>
</form>
</template>
Documentation
View full documentation here.
License
MIT
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.16.1 | ^3.2.31 | MIT | |
| 0.16.0 | ^3.2.31 | MIT | |
| 0.15.0 | ^3.2.31 | MIT | |
| 0.14.0 | ^3.2.31 | MIT | |
| 0.13.20 | ^3.2.31 | MIT | |
| 0.13.16 | ^3.2.31 | MIT | |
| 0.13.15 | ^3.2.31 | MIT | |
| 0.13.11 | ^3.2.31 | MIT | |
| 0.13.9 | ^3.2.31 | MIT | |
| 0.13.6 | ^3.2.31 | MIT | |
| 0.13.5 | ^3.2.31 | MIT | |
| 0.13.0 | ^3.2.31 | MIT | |
| 0.12.0 | ^3.2.31 | MIT | |
| 0.11.10 | ^3.2.31 | ISC | |
| 0.11.9 | ^3.2.31 | ISC | |
| 0.11.6 | ^3.2.31 | ISC | |
| 0.11.5 | ^3.2.31 | ISC | |
| 0.11.0 | ^3.2.31 | ISC | |
| 0.10.13 | ^3.2.31 | ISC | |
| 0.10.12 | ^3.2.31 | ISC | |
| 0.10.11 | ^3.2.31 | ISC |
Pre-releases (19)
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.0-beta.4 | ^3.2.31 | MIT | |
| 1.0.0-beta.3 | ^3.2.31 | MIT | |
| 1.0.0-beta.2 | ^3.2.31 | MIT | |
| 1.0.0-beta.1 | ^3.2.31 | MIT | |
| 0.14.2-alpha.40 | ^3.2.31 | MIT | |
| 0.14.0-alpha.60 | ^3.2.31 | MIT | |
| 0.14.0-alpha.48 | ^3.2.31 | MIT | |
| 0.14.0-alpha.1 | ^3.2.31 | MIT | |
| 0.14.0-alpha.0 | ^3.2.31 | MIT | |
| 0.12.0-alpha.24 | ^3.2.31 | MIT | |
| 0.12.0-alpha.23 | ^3.2.31 | MIT | |
| 0.12.0-alpha.21 | ^3.2.31 | ISC | |
| 0.12.0-alpha.20 | ^3.2.31 | ISC | |
| 0.12.0-alpha.9 | ^3.2.31 | ISC | |
| 0.12.0-alpha.4 | ^3.2.31 | ISC | |
| 0.12.0-alpha.1 | ^3.2.31 | ISC | |
| 0.12.0-alpha.0 | ^3.2.31 | ISC | |
| 0.10.13-alpha.6 | ^3.2.31 | ISC | |
| 0.10.13-alpha.5 | ^3.2.31 | ISC |