draftjs-conductor
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -7,2 +7,8 @@ # Changelog | ||
## [0.4.1](https://github.com/thibaudcolas/draftjs-conductor/compare/v0.4.0...v0.4.1) (2019-01-25) | ||
### Bug Fixes | ||
- **copy-paste:** use explicit check for plain text pastes ([02bdc94](https://github.com/thibaudcolas/draftjs-conductor/commit/02bdc94)) | ||
# [0.4.0](https://github.com/thibaudcolas/draftjs-conductor/compare/v0.3.0...v0.4.0) (2019-01-25) | ||
@@ -9,0 +15,0 @@ |
@@ -132,4 +132,3 @@ // @flow | ||
// Plain-text pastes are better handled by Draft.js. | ||
// flowlint sketchy-null-string:off | ||
if (!html) { | ||
if (html === "" || typeof html === "undefined" || html === null) { | ||
return false; | ||
@@ -136,0 +135,0 @@ } |
@@ -126,4 +126,3 @@ // @flow | ||
// Plain-text pastes are better handled by Draft.js. | ||
// flowlint sketchy-null-string:off | ||
if (!html) { | ||
if (html === "" || typeof html === "undefined" || html === null) { | ||
return false; | ||
@@ -130,0 +129,0 @@ } |
{ | ||
"name": "draftjs-conductor", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "📝✨ Little Draft.js helpers to make rich text editors “just work”", | ||
@@ -5,0 +5,0 @@ "author": "Thibaud Colas", |
27832
263