Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Compatible With VueQuill? #17

Open
jringeisen opened this issue Jul 23, 2024 · 0 comments
Open

Not Compatible With VueQuill? #17

jringeisen opened this issue Jul 23, 2024 · 0 comments

Comments

@jringeisen
Copy link

The VueQuill documentation lists your package as a module that should work with VueQuill. I can't seem to get it working. Here is what I did to implement this module into my VueQuill setup as per their documentation. I'm trying to figure out if the package isn't compatible or if I'm missing something. Any help would be greatly appreciated. Thanks!

<script setup>
import { QuillEditor } from '@vueup/vue-quill'
import Placeholder from 'quill-placeholder-module';
import '@vueup/vue-quill/dist/vue-quill.snow.css';

const modules = {
    name: 'placeholder',
    module: Placeholder,
    options: {
        placeholders: [
            {id: 'foo', label: 'Foo'},
            {id: 'required', label: 'Required', required: true}
        ],
    },
};
</script>

<template>
    <Head title="Send Email" />

    <FormLayout>
        <div class="absolute right-6 top-6">
            <QuillEditor v-model="form.body" :modules="modules" :content="form.body" contentType="html" />
        </div>
    </FormLayout>
</template>

And here is the error in the console:

TypeError: Quill.import is not a function
    at new getPlaceholderModule (quill-placeholder-module.js?v=63e4ae51:87:43)
    at SnowTheme2.addModule (chunk-G7VXOX5J.js?v=63e4ae51:6244:40)
    at SnowTheme2.addModule (chunk-G7VXOX5J.js?v=63e4ae51:6962:136)
    at chunk-G7VXOX5J.js?v=63e4ae51:6236:29
    at Array.forEach (<anonymous>)
    at SnowTheme2.init (chunk-G7VXOX5J.js?v=63e4ae51:6234:53)
    at new Quill2 (chunk-G7VXOX5J.js?v=63e4ae51:1139:28)
    at initialize (@vueup_vue-quill.js?v=63e4ae51:1295:15)
    at @vueup_vue-quill.js?v=63e4ae51:1273:7
    at chunk-U6BEPC57.js?v=63e4ae51:4328:88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant