Created
December 23, 2016 08:22
-
-
Save tomcask/07bdeee30dd100462a73c9cea83d3bbe to your computer and use it in GitHub Desktop.
Example of initial state with image
This file contains hidden or 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
| const initialState = { | |
| "entityMap": { | |
| "0": { | |
| "type": "image", | |
| "mutability": "MUTABLE", | |
| "data": { | |
| "src": "https://www.google.es/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png" | |
| } | |
| } | |
| }, | |
| "blocks": [{ | |
| "key": "ov7r", | |
| "text": " ", | |
| "type": "atomic", | |
| "depth": 0, | |
| "inlineStyleRanges": [], | |
| "entityRanges": [{ | |
| "offset": 0, | |
| "length": 1, | |
| "key": 0 | |
| }], | |
| "data": {} | |
| }] | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment