YouTube iframe works in web content display but not knowledge base display?YouTube iframe works in web content display but not knowledge base display?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1177072342024-03-28T14:37:16Z2024-03-28T14:37:16ZRE: YouTube iframe works in web content display but not knowledge base dispKeifer Williamshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1177082292019-11-07T22:00:01Z2019-11-07T22:00:01ZThanks for your time and reply! We tried what you described with model.resource.com.liferay.knowledge.base.model.KBArticle and model.resource.com.liferay.knowledge.base.display but had no luck. However, there's a strong chance we're just haven't done it right yet. We're gonna keep troubleshooting tomorrow. <br /><br />EDIT: It worked! We later figured out the class is called com.liferay.knowledge.base.model.KBArticle and if you include "model.resource" on the front it won't work.Keifer Williams2019-11-07T22:00:01ZRE: YouTube iframe works in web content display but not knowledge base dispOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1177075752019-11-07T20:59:08Z2019-11-07T20:59:08Z<div class="quote-title">Keifer Williams:</div><blockquote><br /><strong>info</strong>: liferay 7.1<br /><br /><strong>problem</strong>: YouTube videos successfully embed in "web content display" widget but not in "knowledge base display" widget. I'm using same exact code, just the iframe. On both widgets I can see the iframe represented on the WYSIWYG editor as a square that says "iframe" after posting code on the code side. However, after I publish, web content display shows the embedded video and knowledge base display doesn't show anything. No error messages. It just disappears.<strong></strong><br /></blockquote>It's probably content sanitation. I only have 7.2 running at the moment, there it's in Control Panel / Configuration / System Settings / Security Tools / AntiSamy Sanitizer. JournalContent is whitelisted, KnowledgeBase Article isn't. You'll have to figure out the complete classname of the KB article and whitelist it. Careful what you ask for: This opens you up to XSS attacks through that vector in case you don't trust your authorsOlaf Kock2019-11-07T20:59:08ZYouTube iframe works in web content display but not knowledge base display?Keifer Williamshttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1177072332019-11-07T20:36:47Z2019-11-07T20:36:47Z<strong>info</strong>: liferay 7.1<br /><br /><strong>problem</strong>: YouTube videos successfully embed in "web content display" widget but not in "knowledge base display" widget. I'm using same exact code, just the iframe. On both widgets I can see the iframe represented on the WYSIWYG editor as a square that says "iframe" after posting code on the code side. However, after I publish, web content display shows the embedded video and knowledge base display doesn't show anything. No error messages. It just disappears.<br /><br /><strong>I've tried</strong>: changing the editor in Knowledge base display to CKEditor. It still didn't work.<br /><strong></strong><br /><strong>Thanks for your time:</strong> Unfortunately, the entire series of articles is already established in t