Home > Web Front-end > Vue.js > How to use vueup/vue-quill rich text in vue3 and limit the number of input characters

How to use vueup/vue-quill rich text in vue3 and limit the number of input characters

PHPz
Release: 2023-05-20 16:16:06
forward
2775 people have browsed it

1. Effect display

How to use vueup/vue-quill rich text in vue3 and limit the number of input characters

2. npm

npm install @vueup/vue-quill@alpha --save
Copy after login

3. Main.js introduction

import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css';
app.component('QuillEditor',QuillEditor)
Copy after login

4. Page usage

<quill-editor
 v-model:content="htmlValue"
 ref="myQuillEditor"
 contentType="html"
 :options="editorOption"
 @update:content="onEditorChange($event)">
</quill-editor>
<div class="editor_length">{{ TiLength }}/500</div>
Copy after login
rrree

The above is the detailed content of How to use vueup/vue-quill rich text in vue3 and limit the number of input characters. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template