Iframe in a custom block

Dear OJS support,

Let me start by wishing you all an awesome 2018! In the past few years I’ve witnessed OJS growth and I have to say that you should all be very proud of all the accomplishments made.

Here’s my problem, I’m trying to set an iframe on a custom block under OJS version 2.4.8. but “no can do”.

I’ve set config.inc:

allowed_html = "<a href|target> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <i> <u> <img src|alt> <sup> <sub> <br> <p> <iframe src|frameborder|scrolling|width|height>"

…and nothing, OJS or TinyMCE adds style=“display: none !important”:

<p><iframe style="display: none !important;" src="/ojs/lib/pkp/templates/common/advert.html" frameborder="0" scrolling="no" width="195px" height="240px"> </iframe></p>

I’ve also tried to add on String.inc:

$config->set('HTML.SafeIframe', true); $config->set('URI.SafeIframeRegexp', '%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/)%'); //allow YouTube and Vimeo // This line is important allow

…i know that this is probably the wrong approach… don’t give up on me!

I want to add a simple jQuery image rotator, for advertising purposes with links to external websites (science community websites) in the rightsidebar.

Best regards,
Miguel