vueup / vue-quill

Rich Text Editor Component for Vue 3.
https://vueup.github.io/vue-quill/
MIT License
1.08k stars 261 forks source link

Cannot read properties of undefined (reading 'imports') when using quill-image-resize-module #521

Closed tangtrongnghia closed 3 months ago

tangtrongnghia commented 5 months ago
<template>
    <QuillEditor theme="snow" />
</template>
<script setup>
    import { QuillEditor } from '@vueup/vue-quill';
    import ImageResize from 'quill-image-resize-module';
</script>

Cannot read properties of undefined (reading 'imports') when using quill-image-resize-module

shubhangchourasia commented 5 months ago

I too have this issue but I have not found the solution yet. Need solution for this

zxr3680166 commented 5 months ago
    inject({
        'window.Quill': ['vue3-quill', 'Quill'],
        Quill: ['vue3-quill', 'Quill'],
    }),

    这样就可以解决上述问题
stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.