Dropbox Embedder Javascript


I'm hoping to embed a Dropbox folder into a page on Knack. Typically this is done by following the instructions here: https://www.dropbox.com/developers/embedder

Eventually, you need to insert some HTML like this in your web page:

<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="XXXX"></script>

As best as I can tell, I can't just plop the above into a rich text view, so I headed over to the Code settings for my app and prepared to use LazyLoader. But I was unable to figure out how to refer to the script above while also including the data-app-key.

Has anybody else done something like this? Could you offer a tip?

I think I found the repo for LazyLoad (https://github.com/rgrove/lazyload) and it looks like attributes like the data-app-key aren't supported. Will have to figure something out:-(