Rosey / markdown-draft-js

A tool to convert content created in DraftJS to markdown and vice versa.
https://rosey.github.io/markdown-draft-js/
MIT License
318 stars 69 forks source link

getBlockMap is not a function #60

Closed igorlesnenko closed 6 years ago

igorlesnenko commented 6 years ago

contentState.getBlockMap is not a function

I'm getting this error when trying to put converted content into DraftJS state

EditorState.createWithContent(contentState, decorator);

What am I doing wrong?

igorlesnenko commented 6 years ago

Ok, I need to it like this EditorState.createWithContent(convertFromRaw(convertationResult), decorator);