Page 1 of 1
How to allow iframes in HESK knowledgebase articles
Posted: Thu Aug 17, 2023 8:32 am
by htyhth28RnH
How to allow iframes in HESK knowledgebase articles?
This article is for version 2.7 and is outdated / does not work:
https://www.hesk.com/knowledgebase/index.php?article=92
Thanks
Re: How to allow iframes in HESK knowledgebase articles
Posted: Thu Aug 17, 2023 3:30 pm
by Klemen
The article is for Hesk 2.7 or newer and should still work.
What kind of errors do you get with that modification?
Re: How to allow iframes in HESK knowledgebase articles
Posted: Fri Aug 18, 2023 9:54 am
by htyhth28RnH
Hi Klemen,
My mistake, I could not find 'return ''; in the file but it's there I see. Don't know how I missed that.
If I add an iframe it's working but I would like to have a 100% width / heigth iframe. If I create the article it's looking 100% but as soon as I save it, it changes the code back without the width and heigth. I use the following code:
<iframe width="100%" height="100%" src="http://example.com"></iframe>
After saving it changes back to:
<p><iframe src="http://example.com"></iframe></p>
Any ideas how to get a full frame?
Edit:
I managed to get a fixed widt and height with the following:
<p><iframe src="
https://example.com" width="700" height="530"></iframe></p>
That seems to work fine.
Thanks.
Re: How to allow iframes in HESK knowledgebase articles
Posted: Fri Aug 18, 2023 10:17 am
by Klemen
Glad to hear you got it working!