joinfunny

Results 1 comments of joinfunny

I solved it like this: > on editorState changed: onEditorStateChange(editorState) { this.setState({editorState}) const content = draftToHtml(convertToRaw(editorState.getCurrentContent())).trim().replace('', '') this.content = content this.props.onContentChange && this.props.onContentChange(content) } > on componentWillReceiveProps: componentWillReceiveProps(nextProps) { const...