quill-image-resize-module icon indicating copy to clipboard operation
quill-image-resize-module copied to clipboard

quill Overwriting modules/imageResize with

Open cvalues opened this issue 3 years ago • 6 comments

Hi all,

i am getting this warning message with my nuxt implementation:

quill Overwriting modules/imageResize with ƒ t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.initializeModules=function(){n.removeModules(),n.modules=n.moduleClasses.map(function(t){return new(l[t]||t)…

nuxt.config.js

  build: {
  plugins: [
      new webpack.ProvidePlugin({
        'window.Quill': 'quill/dist/quill.js',
        'Quill': 'quill/dist/quill.js'
      })
    ],
}
import Quill from 'quill'
import VueQuillEditor from 'vue-quill-editor'
import ImageResize from 'quill-image-resize-module'
Quill.register('modules/imageResize', ImageResize)

import {ImageDrop} from 'quill-image-drop-module'
Quill.register('modules/imageDrop', ImageDrop)

How to get rid of it?

KR

cvalues avatar Jun 23 '21 05:06 cvalues

Comment Out The Following:

Quill.register('modules/imageResize', ImageResize)

And

Quill.register('modules/imageDrop', ImageDrop)

ghost avatar Oct 14 '21 08:10 ghost

Hi,

this results in: the modules work no longer and the warnings still come

quill.js?9339:2037 quill Cannot import modules/imageDrop. Are you sure it was registered?

KR,

cvalues avatar Oct 14 '21 11:10 cvalues

I didn't note the fact that you're on a nuxt project, 'coz then I was gonna say, try moving those imports to the app.js file. I had the same problem when I imported them in the component but the problem left when I moved them to the app.js file.

ghost avatar Oct 15 '21 11:10 ghost

Comment Out The Following:

Quill.register('modules/imageResize', ImageResize)

And

Quill.register('modules/imageDrop', ImageDrop)

This worked for me, maybe cuz I am not using import, I'm using a script src tag

Kolozuz avatar Dec 07 '22 19:12 Kolozuz

seems to work now..thanks alot!

cvalues avatar Dec 07 '22 20:12 cvalues

I didn't note the fact that you're on a nuxt project, 'coz then I was gonna say, try moving those imports to the app.js file. I had the same problem when I imported them in the component but the problem left when I moved them to the app.js file.

this worked for me. Thanks

asjad2 avatar Jul 30 '24 10:07 asjad2