Created
April 12, 2017 19:06
-
-
Save grommett/79efff91685fdeb7246c011862bcdb47 to your computer and use it in GitHub Desktop.
Result of running Draft.js `convertFromHTML` with an `<img>` inside an `<a>` tag.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"contentBlocks": [ | |
{ | |
"key": "22lg9", | |
"type": "unstyled", | |
"text": "Bold text, Italic text\n", | |
"characterList": [ | |
{ | |
"style": [ | |
"BOLD" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"BOLD" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"BOLD" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"BOLD" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"BOLD" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"BOLD" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"BOLD" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"BOLD" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"BOLD" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [], | |
"entity": null | |
}, | |
{ | |
"style": [], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"ITALIC" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"ITALIC" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"ITALIC" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"ITALIC" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"ITALIC" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"ITALIC" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"ITALIC" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"ITALIC" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"ITALIC" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"ITALIC" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [ | |
"ITALIC" | |
], | |
"entity": null | |
}, | |
{ | |
"style": [], | |
"entity": null | |
} | |
], | |
"depth": 0, | |
"data": {} | |
}, | |
{ | |
"key": "fjdqi", | |
"type": "unstyled", | |
"text": "image.png", | |
"characterList": [ | |
{ | |
"style": [], | |
"entity": "2" | |
}, | |
{ | |
"style": [], | |
"entity": "2" | |
}, | |
{ | |
"style": [], | |
"entity": "2" | |
}, | |
{ | |
"style": [], | |
"entity": "2" | |
}, | |
{ | |
"style": [], | |
"entity": "2" | |
}, | |
{ | |
"style": [], | |
"entity": "2" | |
}, | |
{ | |
"style": [], | |
"entity": "2" | |
}, | |
{ | |
"style": [], | |
"entity": "2" | |
}, | |
{ | |
"style": [], | |
"entity": "2" | |
} | |
], | |
"depth": 0, | |
"data": {} | |
} | |
], | |
"entityMap": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment