You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I have django-quill working perfectly, I'm just wondering how I can run quill methods from javascript? Is the quill object created for my field named something specific that I can use to call things like quill.getSelection() or quill.insertText()? I've tried quill, Quill, wrapper, wrapper.quill...
The text was updated successfully, but these errors were encountered:
Update, I did a little test myself. Before quill media is imported I created a dictionary constant called "quills", then in the django-quill widget template I added wrapper to the dictionary with its ID as the key. This allows me to call API methods from "quills[quill_id].quill". If anyone has a more elegant method for making the object accessible, would love to see a PR for this feature.
Investigamer
added a commit
to Investigamer/django-quill-editor
that referenced
this issue
Oct 10, 2022
Hi I have django-quill working perfectly, I'm just wondering how I can run quill methods from javascript? Is the quill object created for my field named something specific that I can use to call things like
quill.getSelection()
orquill.insertText()
? I've tried quill, Quill, wrapper, wrapper.quill...The text was updated successfully, but these errors were encountered: