Rosey/markdown-draft-js

getBlockMap is not a function

Closed this issue · 1 comments

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?

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