react-draft-wysiwyg
Advanced tools
Comparing version 1.12.3 to 1.12.4
@@ -107,2 +107,6 @@ # Changelog | ||
## 1/1/2018 (1.12.3) | ||
# Adding UMD module bundling. | ||
- # Adding UMD module bundling. | ||
## 8/1/2018 (1.12.3) | ||
- #514, Avoid error when an alignment is not defined. | ||
- #555, Image preview option. |
{ | ||
"name": "react-draft-wysiwyg", | ||
"version": "1.12.3", | ||
"version": "1.12.4", | ||
"description": "A wysiwyg on top of DraftJS.", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-draft-wysiwyg.js", |
@@ -176,2 +176,3 @@ /* @flow */ | ||
urlEnabled, | ||
previewImage, | ||
inputAccept, | ||
@@ -231,3 +232,9 @@ alt: altConf, | ||
> | ||
{imgSrc || translations['components.controls.image.dropFileText']} | ||
{ previewImage && imgSrc | ||
? <img | ||
src={imgSrc} | ||
alt={imgSrc} | ||
className="rdw-image-modal-upload-option-image-preview" | ||
/> | ||
: imgSrc || translations['components.controls.image.dropFileText']} | ||
</label> | ||
@@ -234,0 +241,0 @@ </div> |
@@ -110,3 +110,3 @@ /* @flow */ | ||
<img | ||
src={(textAlignment && config[textAlignment].icon) || getFirstIcon(config)} | ||
src={(textAlignment && config[textAlignment] && config[textAlignment].icon) || getFirstIcon(config)} | ||
alt="" | ||
@@ -113,0 +113,0 @@ /> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1188443
26441