felbus
2017-04-14 09:48:09 UTC
Hi,
tldr; how do I load an html email in to a div with caja, allowing the
loading of images and clickable links
---
Im just starting to use caja, the API links are down, so am not sure
whether this is the default behaviour.
I am loading an html email in to a div like this:
caja.load(document.getElementById('messagebox'), undefined, function(frame) {
frame.code(contentUrl, 'text/html').run();
});
When it is rendered on the page, the images and hrefs are all stripped out.
So you cannot see images or click links.
I am guessing this is the default behaviour to prevent attacks.
My question is how do I allow these to be loaded so that the page is
displayed as intended?
Thanks
tldr; how do I load an html email in to a div with caja, allowing the
loading of images and clickable links
---
Im just starting to use caja, the API links are down, so am not sure
whether this is the default behaviour.
I am loading an html email in to a div like this:
caja.load(document.getElementById('messagebox'), undefined, function(frame) {
frame.code(contentUrl, 'text/html').run();
});
When it is rendered on the page, the images and hrefs are all stripped out.
So you cannot see images or click links.
I am guessing this is the default behaviour to prevent attacks.
My question is how do I allow these to be loaded so that the page is
displayed as intended?
Thanks
--
---
You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-caja-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---
You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-caja-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.