-
Notifications
You must be signed in to change notification settings - Fork 9
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
How can I initialise Quill on a textarea in a dynamically added div by Cocoon? #4
Comments
Make sure that the cocoon containers have the class "quill_container" Quilljs.loadDefaults(); One issue that might develop with this method is that it might create a Quill editor container on top of another initialized editor. You might need to destroy and reinitialize those containers every time you insert a new cocoon container. Pseudo code:
|
I'm using Cocoon to create a nested form. Cocoon offers the following method when the div is added to the DOM:
cocoon:after-insert
How might I initialise Quill on a textarea in the dynamic nested form?
The text was updated successfully, but these errors were encountered: