Closed igorlesnenko closed 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?
Ok, I need to it like this EditorState.createWithContent(convertFromRaw(convertationResult), decorator);
EditorState.createWithContent(convertFromRaw(convertationResult), decorator);
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?