draft-js-import-element
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -298,3 +298,3 @@ 'use strict'; | ||
if (SELF_CLOSING_ELEMENTS.hasOwnProperty(tagName)) { | ||
this.processText('~'); | ||
this.processText('\xA0'); | ||
} | ||
@@ -301,0 +301,0 @@ block.entityStack.pop(); |
{ | ||
"name": "draft-js-import-element", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "DraftJS: Import Element to ContentState", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -38,3 +38,3 @@ # Plain text | ||
# Image Entity | ||
{"entityMap":{"0":{"type":"IMAGE","mutability":"MUTABLE","data":{"src":"a.jpg", "alt": "a"}}},"blocks":[{"key":"8r91a","text":"~","type":"unstyled","data":{},"depth":0,"inlineStyleRanges":[],"entityRanges":[{"offset":0,"length":1,"key":0}]}]} | ||
{"entityMap":{"0":{"type":"IMAGE","mutability":"MUTABLE","data":{"src":"a.jpg", "alt": "a"}}},"blocks":[{"key":"8r91a","text":"\u00A0","type":"unstyled","data":{},"depth":0,"inlineStyleRanges":[],"entityRanges":[{"offset":0,"length":1,"key":0}]}]} | ||
<p><img src="a.jpg" alt="a"/></p> | ||
@@ -41,0 +41,0 @@ |
43055