Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pasteHTML doesn't insert base64 image #721

Closed
brynjagr opened this issue Jun 2, 2016 · 0 comments
Closed

pasteHTML doesn't insert base64 image #721

brynjagr opened this issue Jun 2, 2016 · 0 comments

Comments

@brynjagr
Copy link

brynjagr commented Jun 2, 2016

The pasteHTML function doesn't let me insert a base64 image into the quill editor. The inserted result is an img tag with the src attribute "about:blank".

Steps for Reproduction

  1. Create a new Quill instance
  2. Run quill.pasteHTML with some base64 image. E.g <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO 9TXL0Y4OHwAAAABJRU5ErkJggg==" />

Expected behavior:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO 9TXL0Y4OHwAAAABJRU5ErkJggg==" />

Actual behavior:
<img src="about:blank" />

Platforms: Chrome 50.0.2661.102 (64-bit)

Version: 1.0.0-beta.3

@jhchen jhchen closed this as completed in 74fc8bb Jun 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant