Tatiane Stivelman

Results 2 comments of Tatiane Stivelman

I managed doing like this: const initialContentState = initialEditorState.getCurrentContent(); const contentStateWithEntity = initialContentState.createEntity('IMAGE', 'MUTABLE', { src: image.url }); const entityKey = contentStateWithEntity.getLastCreatedEntityKey(); initialEditorState = AtomicBlockUtils.insertAtomicBlock(EditorState.createWithContent(contentStateWithEntity), entityKey, ' '); where `initialEditorState`...

Exactly the same problem here :/