Span 标签直通在 CKEditor 中不起作用

Span Tag line-through Not Working in CKEditor

在我的应用程序中,我使用的是 Ckeditor,如果我从数据库中向 Ckeditor 提供一个字符串,则 span 标记无法正常工作。以下是从数据库到 Ckeditor 的代码:

<p><span style="color:red"><span style="text-decoration: line-through;background-color: rgb(129, 247, 243);">Demo for line Strike</span></span><span style="color:red">Demo</span></p>


我在下图中的预期结果:


我的结果是:


我该如何解决这个问题?

我想他们已经意识到了这个问题,因为这张票显示了类似的错误:

https://dev.ckeditor.com/ticket/8118

如果您使用 <strike> 而不是直通,它似乎可以工作。