CKEditor HTML Autocorrection Issue

前端 未结 1 826
醉话见心
醉话见心 2021-01-24 03:23

I have few lines of HTML in my database. I want to edit the content in CKEditor. But when I open that in editor the HTML gets break down. The HTML gets rearranged.

Belo

相关标签:
1条回答
  • 2021-01-24 03:42

    CKEditor works with a valid HTML only and <h1> is not a valid content of <span>. Quoting CKEditor basic concepts:

    CKEditor is not a tool that will let you input invalid HTML code. CKEditor abides by W3C standards so it will modify code if it is invalid.

    0 讨论(0)
提交回复
热议问题