Hello
I have edited the HTML module to prevent it from stripping code. Although the module now allows the code, it ignors large sections of it and won't display as expected. For example, the 'Display:flex' element is ignored. Yet the 'flex' element is used within the nvQuicktheme which I am using.
Please advise what I need to edit to enable the HTML module to process and display as required.
Thank you.
Joyce, is your code being ignored because it was altered by the editor? Or is the code intact but ignored? If the latter, then perhaps you need to make sure the code is well-formed, spelled correctly with all the right syntax. This could be a simple syntax issue.
You can also put your code in the module settings, in the header or footer. Code in there is not altered by the editor. Use that spot for testing, and then move the code to the editor (in source mode of course) I wouldn't go back and forth like that all the time I use code, but it may help you determine if the editor is the problem.
Posted By Joyce on 29 Jul 2020 10:15 AM Thank you both for your reply and advice, it is much appreciated. I am using DNN 9.6.2 Joe I am using the HTML editor but I found that it was stripping out sections of the html code. I navigated to the HTML Editor Manager/Editor config tab and in the "extra allowed content" I added -*.*{*}> This then allowed me to enter html without portions of it being removed. Mark the code was intact but ignored. Perhaps there is some error in the syntax, but I had tried several codes copy/paste from Bootstrap Snippet and Codepen, some very simple codes but nothing worked as expected or demonstrated. Perhaps there is something in these codes that DNN doesn't like. I will try start from scratch and write my own html. Thank you for your help.
Often these code snippets depend on extra loaded libraries, which is why they fail standalone, in general it's not that DNN is blocking them but there's a dependency missing.
I stopped using the HTML module for things like this as it's cumbersome, does not allow loading of extra JS or CSS etc. BTW.
I use Open Content for this (and a lot more):
Open Content has a lot more options and possibilities, but this is a nice one I use for blocks of HTML. https://opencontent.readme.io/
https://github.com/sachatrauwaen/OpenContent
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.