What I’m trying to do:
Edit html with a syntax aware component.
I am unable to find how to initialize or setContents of the editor with html content. In the readthedocs section regarding Quill (here) Quill Editor — Anvil Extras documentation . I found a reference to set_HTML(…) under Methods and the section regarding Anvil Only methods –
set_html(html, sanitize=None)
What I’ve tried and what’s not working:
I am not able to make this method work. It does not work as a method of the quill object (self.quill) or in any other way to call the function.
Does that method exist and if not what is the best way to initial the quill editor with html to be edited. While I am thinking about it (I have not looked for this) will it be possible to switch from HTML to Visual view like the richText component?
Thank you
Code Sample:
# this is a formatted code snippet.
# paste your code between ```
Clone link:
share a copy of your app