Stop removing my footer element
Sometimes, I modify content in a content block in Sitefinity and save it. Next time I load it up again, my markup will have been modified without having done anything. This is immediately reproducible just by using the 'footer' tag.
https://s3.amazonaws.com/RedStaplerSoftware/Sitefinity/Footer/FooterMarkupCorrect.png
Click Save. Immediately click Edit.
https://s3.amazonaws.com/RedStaplerSoftware/Sitefinity/Footer/FooterMarkupAfterSaved.png
Why isn't my footer wrapping the ul anymore?
Hello Sam,
This behavior is due to the default implementation of the RadEditor our content blocks use. More specifically it is due the editor's filters towards the HTML inside. You can actually reproduce the behavior on our online sample. Paste your HTML, switch to design and then back to HTML and you will see the same behavior present.
Sitefinity applies all RadEditor filters from its configuration. In order to remove the filters you need to go to Administration->Settings->Advanced->Appearance and set a value of None to both "RadEditor filters for Content block widget" and "Rad Editor's content filters". Remember to restart the application for the changes to take effect.
Regards,
Ivan D. Dimitrov
Telerik
Sorry, I now realized I was confusing.
Please look at the second image. I was intending to say that the 'footer' element is not actually removed, but modified. It's not removed from the markup. It's moved and no-longer wrapping the elements it was around. In addition to this, it only happens after you open the editor again: the markup is saved correctly initially. I don't think your filters are meant to move or mess up the markup, I think your filters are meant to remove what isn't meant to be there, which this fails to do either way.
Hi Sam,
I am aware that the footer is present initially and that when the content is opened for editing the <ul> you use is placed outside the footer tag. The source of the issue is due to the filters applied and the approach towards eliminating the behavior is as described in my initial reply. Here is a video for further reference.
Regards,
Ivan D. Dimitrov
Telerik
Thank you