0

I am working with QuillJS to create a custom rich text editor. Specifically, I'm looking at the Paste function for my app.

I saw this post on how Gmail handles pasting images from the clipboard: How does the paste image from clipboard functionality work in Gmail and Google Chrome 12+?

I plan on using this link but want to investigate a little further for the case of Google Slides.

When I try pasting images from Google Slides into Gmail compose box, however, it does not work. Rather, a blank space is added to the compose box.

These images, if you inspect in Google Slides, are SVG Path in the HTML Tree, not the usual IMG elements.

Then, I try the same thing for Google Docs (copying an image, or you can say SVG path, from Google Slides then pasting it in Google Docs), it works. When I inspect the image in Google Docs, somehow the image is now an IMG element. So I believe there are some kinds of conversion happening here.

I just wonder if anybody knows how Google Docs does that.

Anh Tu Do
  • 71
  • 9

0 Answers0