coralproject / ask

A better way for journalists to manage forms, submissions, and galleries. Because journalism needs everyone.
https://coralproject.net/products/ask.html
Other
42 stars 8 forks source link

Gallery embed code bug #132

Closed losowsky closed 8 years ago

losowsky commented 8 years ago

I was testing the non-iframe embed in WordPress. The current code looks like this:

<script src="https://s3.amazonaws.com/coral-internal/57c870d895ae170007b5afe8.js"></script><div id="ask-gallery" />

This didn't work. I looked at the js embed from the form (which did work) and adapted the code to match the format, and this did work:

<div id="ask-gallery" /></div><script src="https://s3.amazonaws.com/coral-internal/57c870d895ae170007b5afe8.js"></script>

I'm assuming then that we need to move the 'div' code to the front and add a </div> tag straight after it for it to work?