quill-image-uploader
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "quill-image-uploader", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"repository": "https://github.com/noeloconnell/quill-image-uploader.git", | ||
@@ -5,0 +5,0 @@ "description": "A module for Quill rich text editor to allow images to be uploaded to a server instead of being base64 encoded", |
@@ -27,2 +27,3 @@ import LoadingImage from "./blots/image.js"; | ||
selectLocalImage() { | ||
this.quill.focus(); | ||
this.range = this.quill.getSelection(); | ||
@@ -77,2 +78,3 @@ this.fileHolder = document.createElement("input"); | ||
this.quill.focus(); | ||
this.range = this.quill.getSelection(); | ||
@@ -82,2 +84,3 @@ let file = evt.dataTransfer.files[0]; | ||
setTimeout(() => { | ||
this.quill.focus(); | ||
this.range = this.quill.getSelection(); | ||
@@ -102,5 +105,7 @@ this.readAndUploadFile(file); | ||
if (file) { | ||
this.quill.focus(); | ||
this.range = this.quill.getSelection(); | ||
evt.preventDefault(); | ||
setTimeout(() => { | ||
this.quill.focus(); | ||
this.range = this.quill.getSelection(); | ||
@@ -107,0 +112,0 @@ this.readAndUploadFile(file); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
283040
351
13