quill-plugin-image-upload icon indicating copy to clipboard operation
quill-plugin-image-upload copied to clipboard

Images don't display fully when loading quill contents from DB

Open DevdudeSami opened this issue 5 years ago • 2 comments

I managed to use this plugin to successfully upload images through Quill. However, when I try to display the contents from a database after saving, the image loads inside the loading spinner but does not display in full size. It stays inside the spinner.

Any ideas on how to fix this?

DevdudeSami avatar Jan 15 '20 12:01 DevdudeSami

@DevdudeSami any screenshot?

dragonwong avatar Jan 17 '20 08:01 dragonwong

hi @dragonwong it shows like this when its load from database

Screen Shot 2020-08-05 at 8 42 28 AM

meanwhile i just handle like this

this.quill.updateContents(JSON.parse(this.my_data)) var imageElements = document.getElementsByClassName('quill-plugin-image-upload-placeholder') for (var i=0, len=imageElements.length|0; i<len; i=i+1|0) { imageElements[i].classList.remove("quill-plugin-image-upload-placeholder"); }

setiawand avatar Aug 05 '20 01:08 setiawand