samclarke / SCEditor

A lightweight HTML and BBCode WYSIWYG editor
http://www.sceditor.com/
Other
659 stars 188 forks source link

When pasting multiple images, only one image is displayed, how can I support multiple images? #941

Closed iomect closed 1 year ago

iomect commented 1 year ago

I'm using sceditor in my application and I want to implement automatic uploading when users paste images, but when I select multiple images from the local folder and paste them, only the last selected image will be read and converted to base64. I want to know how to paste multiple images into the editor at the same time.

iomect commented 1 year ago

I solved it by looping "clipboard.files".