+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Stop removing my footer element

Stop removing my footer element

5 posts, 1 answered
  1. Sam
    Sam avatar
    16 posts
    Registered:
    28 Jul 2010
    30 Oct 2014
    Link to this post

    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?

     

  2. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    03 Nov 2014
    Link to this post
    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
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Sam
    Sam avatar
    16 posts
    Registered:
    28 Jul 2010
    03 Nov 2014 in reply to Ivan D. Dimitrov
    Link to this post

    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.

  4. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    04 Nov 2014
    Link to this post
    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
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
    Answered
  5. Sam
    Sam avatar
    16 posts
    Registered:
    28 Jul 2010
    05 Nov 2014 in reply to Ivan D. Dimitrov
    Link to this post
    Thank you
5 posts, 1 answered