I am pasting the following code into the text editor.

<ul class="faqs">    
<li class="navbookmark"><a href="#er1">ABC</a></li>

After the initial save everything looks fine in preview mode. However, if I go back in to edit the page, the styles applied to ul and li tags get stripped out, and the source looks like this.

    <li><a href="#er1">ABC</a></li> 

How do I prevent this from happening?


I haven't met this problem before. I did Google search and found this link Classes being stripped in CKeditor. Maybe your problems come from CKeditor and you just configure the allowedContent for CKeditor.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.