在CKeditor 4中,如何实现列表中的精确格式化

在CKeditor 4中,如何实现列表中的精确格式化,ckeditor,Ckeditor,我希望实现这一结构: <ul class="dates"> <li><strong>From date1 to date2 :</strong><h5>Tile for this item</h5></li> <li><strong>From date2 to date3 :</strong><h5>Tile for this item</h5

我希望实现这一结构:

<ul class="dates">
    <li><strong>From date1 to date2 :</strong><h5>Tile for this item</h5></li>
    <li><strong>From date2 to date3 :</strong><h5>Tile for this item</h5></li>
    <li><strong>From date3 to date4 :</strong><h5>Tile for this item</h5></li>
</ul>
修改它的唯一方法是在源代码视图中进行调整,这是任何客户端都不需要的


也许post能帮上忙,但我把搜索引擎优化的h5标签弄松了。它能在一段时间内转化h5病毒

strong
h5
并排嵌套在
li
中看起来语义上确实错误。不自然。在那个特定的情况下,也许这在语义上是有争议的,但这不是我问题的重点。在链接中,开发人员似乎也在论证这一点,以证明
Hx
逻辑是硬编码的,因此不灵活。。。
<ul>
    <li>From date1 to date2 : Tile for this item</li>
    <li>From date2 to date3 : Tile for this item</li>
    <li>From date3 to date4 : Tile for this item</li>
</ul>
<ul>
    <li><h5 class="someclass">From date1 to date2 : Tile for this item</h5></li>
    <li>From date2 to date3 : Tile for this item</li>
    <li>From date3 to date4 : Tile for this item</li>
</ul>