ashleydw / lightbox

A lightbox gallery plugin for Bootstrap
http://ashleydw.github.io/lightbox
MIT License
1.85k stars 1.3k forks source link

Force local iframe content #208

Closed timint closed 8 years ago

timint commented 8 years ago

I am missing a feature to force local content as iframe rather than inline content.

This is necessary when loading isolated or printable content which cannot interfere with CSS or HTML.

My proposal is simply data-type="iframe"

I can provide the javascript code myself but I'm not too experienced with CoffeeScript.

ashleydw commented 8 years ago

data-type="url" with data-disableExternalCheck="true" should do it

read the source: https://github.com/ashleydw/lightbox/blob/master/ekko-lightbox.coffee#L254

timint commented 8 years ago

That didnt work for me. I tried it before creating this thread.

frzsombor commented 7 years ago

@ashleydw Didn't work for me either. I can't use this library because of this :(

UPDATE: Found the problem! You should use data-disable-external-check="true" instead of the camel-case version. Another stupid strange behavior of the jQuery.data() function.