React-quill: Couldn't get value while using with Redux-form

Created on 20 Dec 2017  路  1Comment  路  Source: zenoamaro/react-quill

I am using React-quill for making a discussion forum. I need to handle it using Redux-form but I am getting error while receiving value from it. Every time i enter some thing on the editor the form gives value something like:
<p><br></p> in the string format. So is there any way to fix this. I need to save the content to MongoDB and i am expecting some idea on how do this.

Most helpful comment

Guys the issue has been solved by using this bunch of code.
<ReactQuill {...input} onChange={(newValue, delta, source) => { if (source === 'user') { input.onChange(newValue); } }} onBlur={(range, source, quill) => { input.onBlur(quill.getHTML()); }}/>

>All comments

Guys the issue has been solved by using this bunch of code.
<ReactQuill {...input} onChange={(newValue, delta, source) => { if (source === 'user') { input.onChange(newValue); } }} onBlur={(range, source, quill) => { input.onBlur(quill.getHTML()); }}/>

Was this page helpful?
0 / 5 - 0 ratings

Related issues

levous picture levous  路  3Comments

sophyphreak picture sophyphreak  路  5Comments

gustavoelizalde picture gustavoelizalde  路  5Comments

prosenjitchy picture prosenjitchy  路  3Comments

matthewfbenjamin picture matthewfbenjamin  路  5Comments