Hello there,
This is currently intended behavior for Quiz Cat. We have specifically stripped certain HTML elements, to make sure that the users do not break the quizzes.
And this cannot be easily changed by making simple code changes.
In the case of Iframes, we will look at adding this in the next release.
Let us know if you have any other questions.
Regards.
Thread Starter
archse
(@archse)
Is there an ETA for the next release?
Hello there,
After speaking to our developer about this, he said we follow the WordPress’s normal practice for filtering out HTML code. He also said what you are trying to achieve is possible by modifying the kses function.
Something like this: https://gist.github.com/bjorn2404/8afe35383a29d2dd1135ae0a39dc018c
Also another new update on this matter would be we will not working on this for the next release since this is achievable through the custom function.
Let us know if you have any other questions.
Thanks
We found adding the kses filter wasn’t enough, we also needed to whitelist iframes in the wysihtml component. We dequeued wysi.min.js, copied wysi.js to the theme, and modified the ‘tags’ array to include iframes;
iframe: {
'check_attributes': {
'src': 'url',
'height': 'dimension',
'width': 'dimension',
},
'set_attributes': {
'frameborder': '0'
}
},
It now works, albeit with a different kses filter, but we would regard this as a bug in the plugin, as it should take account of likely multisite use, and presently it does not.
Also we note the wysihtml component has a more recent version available, not sure if that offers any advantages here though.
a.
-
This reply was modified 8 years, 6 months ago by
ade11.
Hello
Currently our products are not designed with WP multisite in mind. It has to do with our premium licensing.
Apologies for any trouble though, we were not even sure if the product would work on multisite, but glad to hear you’re having success, and got this working.
Thank You