|
|
@@ -19,9 +19,8 @@ import '../../theme/imageuploadprogress.css';
|
|
|
import '../../theme/imageuploadicon.css';
|
|
|
import '../../theme/imageuploadloader.css';
|
|
|
|
|
|
-// Data-uri with blank image that will be set as a img#src while placeholder is displayed.
|
|
|
-const blankImage = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
|
|
|
-
|
|
|
+// Data-uri with blank svg file that will be set as a img#src while placeholder is displayed with same width & height proportions.
|
|
|
+const blankImage = 'data:image/svg+xml;utf8,' + encodeURIComponent( '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><g fill="none" fill-rule="evenodd"><rect width="700" height="250" rx="4"/></g></svg>' );
|
|
|
/**
|
|
|
* The image upload progress plugin.
|
|
|
* It shows a placeholder when the image is read from the disk and a progress bar while the image is uploading.
|