Hello folks,
There is Solution I'd like to share with the Dotnetnuke community.
If the forum is not the relevant one to share this approached, please move it to the right one.
In our company we are using Dotnetnuke CMS Edition which give us the best solution for expose our company agenda.
In the website we are using the DNNArticle module for adding and managing articles.
Our marketing section wanted to add YouTube video (Iframe embedded code) to one of the articles but we encountered a problem. Its seems that the html editor just remove the YouTube iframe embedded code.
I don't need to mention how much sharing YouTube videos is one of the important things for Effective advertising for our company.
So, I decided to go deeper for finding some solutions.
First I tried to see if there is any property that need to change in the DNNArticle Settings, but I didn't saw something that mention embedded, iframe or YouTube support.
Second, I tried to Google it, but I didn't found any relevant discussion or code solution that will help me.
Thirdly, I thought maybe the DNN is blocking or filter the YouTube or script tags, while downloading the source code and exploring it, I found interesting approach in the security section on the DNN, there is a method for checking if there is some script or iframe tags needed to render, and for security reasons he remove them. so I recompile the source code solution without the invoking the filtering method. then open the website in the internet explorer expecting that I solved the problem. but I didn't.
Fourth, I thought maybe it's the Html Editor that blocks the script tags. but after changing to another html editor provider in the DNN I realize that the html editor is not the cause of the filtering. by the way, I tried the CKEditor and its seems that it done better html edit that the default one which did large amount of errors while editing.
After All those approaches , I realized that the problem must been in the DNNArticle Module. but the DNNArticle is NOT open source and its module for sale.
There was no other way but DeCompile the DNNArticle Dynamic Link Library (DLL) File.
After viewing the DeCompiled Code, I Saw the filtering method that invoked only by a true case condition. then after further investigation I saw one property that responsible to the filtering, after investigation deeper I found that the property is a part of the module setting and it is written in the database in the DNN modules settings, so then I figure that must be a setting that I Missed.
In the DNNArticle Module Setting, under the general settings section, I saw it. it's called "Filter Javascript" Using a checkbox for indicates true or false. no further explanations about it. how can we know that this little thing that almost hidden will allow us to plant YouTube embedded video.
I hope this solution will help others in the future.
Assaf,