FWIW, here's the code:
I discovered that if I swiched to using a button and onclick instead of a div and onmousedown it worked in both peview and regular view. I also found other things that worked differently in the view and preview, in particular setting a div to display: none, which worked fine in preview and didn't work in view.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs