getBlockMap is not a function
Closed this issue · 1 comments
igorlesnenko commented
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
Ok, I need to it like this EditorState.createWithContent(convertFromRaw(convertationResult), decorator);