Hi,
I'm having a strange behavior on DNN 9.04.01.
I copy and paste my HTML code (very simple code) but after saving, all css classes are removed.
For example:
ul class="bxslider"....
becomes
ul ....
without my class.
So it looses every behavior assigned to the class (in this case images slider).
What I've to do?
Thanks
Posted By Davide Martini on 08 Jul 2020 08:10 AM Hi, I'm having a strange behavior on DNN 9.04.01. I copy and paste my HTML code (very simple code) but after saving, all css classes are removed. For example: ul class="bxslider".... becomes ul .... without my class. So it looses every behavior assigned to the class (in this case images slider). What I've to do? Thanks
That's the default behaviour of the CKEditor (the component used as the editor). It's for security reasons. Read more about it here: https://dnncommunity.org/...-is-cleaning-my-HTML
BTW, I would advise you to upgrade DNN to the latest version (also for security reasons). Also as have a look at the structured content modules for DNN like Open Content or 2SXC. Managing a slider inside the Editor is very cumbersome compared to those modules
Thank you,
by inserting the string value *(*);*{*} in extraAllowedContent I can save my classes.
Have a nice day!
For me, this does not work anymore. It only works for me if you use *(*)*{*} without the semi-colon inbetween.
Also note to anyone that might reference this thread, clear cache via server persona bar admin settings if you don't see it working after save.
Indeed... Any HTML that is complex in nature or has any risk of people (and web-based editing tools) breaking the HTML should instead use a structured content module instead of the HTML module. As Timo has suggested, the two most popular options currently are OpenContent and 2sxc.
How does this "fix" the issue for pages and modules already added?
Posted By Tycho de Waard (SU) on 7/8/2020 7:26 AM Here is a blog by Timo: https://dnncommunity.org/...-is-cleaning-my-HTML
How does this "fix" the issue for pages and modules that have already been added?
If you already edited the content on some pages and part of the content has been stripped and this is in the HTML module, you can use the versioning of the module. For any other module, I think the only solution is your backup.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.