Reputation: 3
I have a problem with html in CKEditor. I've pasted code:
<ul>
<li>Hello1</li>
<ul>
<li>Hello2</li>
<li>Hello3</li>
<li>Hello4</li>
</ul>
</ul>
After that I've saved code-and it's works fine. But when I've tried to change code again-source code in CKEditor is:
<ul>
<li>Hello1
<ul>
<li>Hello2</li>
<li>Hello3</li>
<li>Hello4</li>
</ul>
</li>
</ul>
Why? Is it possible to tune this in config.js? Thanks
Upvotes: 0
Views: 174
Reputation: 22023
Your input source code is invalid - ul
cannot contain a ul
and CKEditor must work with a valid HTML. Read more CKEditor HTML Autocorrection Issue.
Upvotes: 1