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

时间:2014-08-29 11:41:48

标签: 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></li>
    <li><strong>From date3 to date4 :</strong><h5>Tile for this item</h5></li>
</ul>

我无法做的是在<li><strong><h5>中使用两种不同的样式。

但是当我从这个开始

<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>

如果我在第一个列表项中选择Tile for this item并应用h5格式,则会选择此项目的所有内容。

<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>

修改它的唯一方法是在源视图中进行调整,这对于任何客户端都是不需要的!

也许this帖子可以提供帮助,但我松了一下SEO的h5标签。它在一个范围内转换h5!

0 个答案:

没有答案