Orchard blocks scripts from blog content, how to enable?

Topics: General, Troubleshooting
Mar 7, 2015 at 7:16 PM

I wanted to insert banner/plugin from price comparer website to my recent blog posts. It contains some remote script which downloads image and current price. But in Orchard (when pasted into TinyMCE using Source code) it does not work (image and price are missing) so I guess Orchard blocks this...

Can I somehow solve this? I tried some Googling but nothing came up.

If I create simple HTML page with above mentioned code and open in browser it works fine. Code I am referring to is below.

<div class="heureka-2022911343"> <div class="heureka3-content"> <div style="float: left; border: 1px solid #E2E2E2; margin: 0 15px 0 0; padding: 0; width: 50px; height: 50px;"><a href="http://mysi.heureka.cz/logitech-g402-hyperion-fury-fps-gaming-mouse/#c4:3" class="heureka-image-2022911343"> </a></div> <div style="margin: 0; padding: 0; line-height: 1.2em;"> <a href="http://mysi.heureka.cz/logitech-g402-hyperion-fury-fps-gaming-mouse/#c4:3" target="_blank">Logitech G402 Hyperion Fury FPS Gaming Mouse</a> lze pořídit v <span class="heureka-shops-2022911343"> </span> e-shopech za cenu od <span class="heureka-price-2022911343"> </span> <small>(Zdroj: Heureka.cz)</small><br /> <a href="http://mysi.heureka.cz/logitech-g402-hyperion-fury-fps-gaming-mouse/#c4:3" target="_blank">Porovnat ceny >></a> </div> </div> <div style="clear: both;"></div> </div> <script type="text/javascript" src="http://www.heureka.cz/direct/bannery/?id=202291134:3:4"></script>
Mar 7, 2015 at 11:16 PM
It works for me except in the summary view of the blogpost. This is because in the summary view all html tags getting removed. If you want to use it anyway you need to override the blogpost-summary shape.
Mar 8, 2015 at 8:06 AM

it doesn't work for me in full blog post unfortunately. Maybe it is because I am displaying the content using @Html.Raw(bodyText) ? But everything else works fine using this approach - images, Google Forms or videos..