I’m quite new to using React, and React Quill. I’m trying to get the user to type into 4 different quill editors and then use getText() and getContent() on the 4 editors. However, I don’t know how to specify which editors to pull from. I’ve given each editor an id (editor1, editor2, editor3, editor4). Then when I try to pull the content from each editor I will get “Cannot read properties of undefined”
Thank you in advance. I appreciate any help.
picture of onSave method
picture of the code for editors
I tried changing the ID name and searching everywhere but found nothing.
phuc trinh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.