Hi I noticed the CK Editor - WSIWYG editor hides span tags with class attribute. If you add a span with a class in CK editor, you can't see that item in the WYSIWYG editor.
Does anyone know whether there's a setting that can change this?
Thanks
Tom
Tom,
not sure what you mean exactly, but reading these Blog posts could help:
Help! DNN CKEditor is cleaning my HTML
Customizing DNN’s Default HTML Editor Provider - CKEditorProvider
Adding Custom Styles to CKEditorProvider
Happy DNNing! Michael
Michael TobischDNN★MVP
Posted By Tycho de Waard (SU) on 07 Dec 2021 01:36 PM The HTML editor strips a bunch of stuff and by default that includes span tags. So, you can submit it in raw mode for instance, but when you reopen the editor, it will be disappeared. In teh HTML editor settings you can exclude them from being stripped.
Actually the current version has a bug, youy need to switch to full mode to avoid this for now. https://github.com/dnnsof...Platform/issues/4620
Posted By Tom Melkonian on 07 Dec 2021 11:52 AM Thanks - What I mean is that when you add a class attribute to a span tag, you no longer see the span tag at all inside the WYSIWYG view in the editor (although its still there in the code) . Hope that explains it better.
Do you mean visually or in the source view of the editor? Is that span an empty span or does it contain any text?
Thanks for your replies -
Timo I think you're on the right track - I think this issue was caused by invalid html (orphan tags etc ) in the code.
Hi Timo and others,
The problem wit stripping is still occuring. The work arround as you suggested is not longer valid. I edit the not allowed content in a text editor like notepad. Then I copy and paste it into the source view of the html editor. Do not go back to the viewer and save youw work. Then all the code will work properly.
Regards, Ton
Posted By Ton Hermes on 12/13/2022 3:54 PM Hi Timo and others, The problem wit stripping is still occuring. The work arround as you suggested is not longer valid. I edit the not allowed content in a text editor like notepad. Then I copy and paste it into the source view of the html editor. Do not go back to the viewer and save youw work. Then all the code will work properly. Regards, Ton
In what verson of DNN are you experiencing this?
Hi Timo,
DNN 09-10-01 HTML 9.10.1
In the past I used code before in the html editor. There were never problems. Somewere on the line something changed and the html editor strips all the code with class. The work arround to save the code in source view works ok. It is only time consuming and you have to save the code in notepad on your local machine.
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.