What’s happening is that the Quill app is taking a little bit of time to load. So Anvil forms are “ready” but the browser isn’t.
To prove the point, I have moved loading the form onto a link on the main form, and I have wrapped the Quill initialisation in a function (in the custom JS).
I have a timer on the editor form that, after 2 seconds, calls the function to initialise Quill. That time could be reduced, I’m sure, and there may be other ways to do this.
Thank you guys! Works as expected. I ask myself whether could be a better way to use something like “document.onreadystatechange”? Maybe something like: “readystate” as part of the form_show() function?
Could be a way to avoid timing problems… anyhow, thank you for your help.