@ryan.murray
To display the value coming from Quill in Vue.js, you can follow these steps:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<template> <div> <div ref="quillEditor"></div> <div v-html="content"></div> </div> </template> <script> import Quill from 'quill'; export default { data() { return { quill: null, content: '' }; }, mounted() { this.quill = new Quill(this.$refs.quillEditor, { theme: 'snow' }); this.quill.on('text-change', () => { this.content = this.quill.root.innerHTML; }); }, }; </script> |
By following these steps, you can display the value coming from Quill in Vue.js.