when i populate ContentFromRaw data to editor state i get following error
TypeError: next.editorState.getDecorator is not a function
what is the best way to get from database and save it into database
here is what i doing
const rawDraftContentState = JSON.stringify(convertToRaw(this.state.editorState.getCurrentContent()))
// convert the raw state back to a useable ContentState object
const contentState = convertFromRaw(JSON.parse(rawDraftContentState))
this.setState({
editorState: contentState
})