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

Error: [Parchment] Unable to create imageBlot blot #92

Open
lalalasi opened this issue Jun 29, 2023 · 1 comment
Open

Error: [Parchment] Unable to create imageBlot blot #92

lalalasi opened this issue Jun 29, 2023 · 1 comment

Comments

@lalalasi
Copy link

<QuillEditor 
      v-model:content="form.content" 
      :toolbar="toolbar"
      :modules="modules"
      ref="qlEditorRef" 
      content-type="html"
      theme="snow" 
      style="height: 250px; overflow: hidden;" 
  />

import { QuillEditor } from '@vueup/vue-quill'
import BlotFormatter from 'quill-blot-formatter';
import ImageUploader from "quill-image-uploader";
import '@vueup/vue-quill/dist/vue-quill.snow.css';

const toolbar = [
    [{ 'align': [ '', 'center', 'right', 'justify'] }],
    ['image']
]
const modules = [
    {
        name: 'imageUploader',
        module: ImageUploader,
        options: {
            name: 'image',
            upload: file => {
                console.log(file)

                return new Promise((resolve, reject)=>{
                    setTimeout(() => {
                        resolve('https://bt-hangzhou.oss-cn-hangzhou.aliyuncs.com/jungong/20230627/test2a341f04c96084c0e8775d78361be088b.jpg')
                    }, 3500);
                })                
            }
        }
    }
]

"quill": "^1.3.7",
"quill-blot-formatter": "^1.0.5",
"quill-image-uploader": "^1.3.0",
报这个错怎么解决,救救我

@SDemonUA
Copy link

Have you tried to add formats: [... , 'imageBlot'] ?

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

2 participants