chenjuneking / quill-image-drop-and-paste

A quill editor module for drop and paste image, with a callback hook before insert image into the editor
ISC License
101 stars 42 forks source link

Paste related questions #48

Closed chenxch closed 1 year ago

chenxch commented 1 year ago

Version

quill-image-drop-and-paste: '1.2.9'

Question

Paste related questions:

  1. paste delayed response
  2. wrong paste

paste delayed response

  1. paste https://github.surmon.me/vue-quill-editor
  2. You will find this without any problem, then empty the text box
  3. paste https://www.vuescript.com/quill-editor-component-vue2/
  4. You will notice a noticeable delay of a few seconds before the content is filled.

wrong paste

  1. paste https://www.vuescript.com/quill-editor-component-vue2/
  2. Copy pasteboard contents elsewhere as quill-editor
  3. In the text box, Ctrl+A selects all the text, and then pastes it, you will find that the content does not match the clipboard.

paste

chenjuneking commented 1 year ago

Hi @chenxch. Thanks for your report. Regarding to your question, I will make the following explanation, hoping to answer your question.

  1. paste delayed response Erery URL-like pasted content will cause a network request for this reason, it's a feature of this module --- automatically convert the link into an image and insert it into the editor while you paste an image's link. So if you meet a network issue, for example, it takes 1 second to response the request, that will make you feel the paste delay for sure. If you dont like this feature, it can be disabled by passing autoConvert: false option on ^v1.3.0. it will not detect the pasted content anymore.

  2. wrong paste Sorry, I can't reproduce this problem.

chenxch commented 1 year ago

Thank you for your feedback, I am very sorry, my version at that time should be 1.2.9, and now I have upgraded to 1.3.0. After local testing, it is normal, and I am currently waiting for QA acceptance. Then this is the reproduction screen recording of the second scene mentioned earlier. paste2