New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two react-quill instances produces errkr #252
Comments
Your example reuses the same ID for both toolbars You can tweak it like this to take a prop for the toolbar ID instead: https://codepen.io/alexkrolick/pen/mMOPmv?editors=0010 Sorry for any confusion! |
Do you have another method with a random id or continuous numbers? In the worst cases, the user can have multiple editor (I can avoid that. But just in case) |
See the last line where the editors are mounted - you can use any code there to generate a sequence of IDs. |
Okey. I'll try. Thank you |
I find another and better way. Require the library shortid Outside the class
Class
Works because the ID in unique. Enjoy |
https://codepen.io/anon/pen/ZJBWGO
If we call two times react-quill (Example. New comment and new replies like any social media). The second instance works bad. The template changes and the buttons don't work.
You can see the problem in the codepen.
Thanks
The text was updated successfully, but these errors were encountered: