0

I am pasting the following code into the text editor.

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

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.

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

How do I prevent this from happening?

1

1 Answer 1

1

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 and acknowledge you have read our privacy policy.

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