【问题标题】:adding class to ckeditor向ckeditor添加类
【发布时间】:2011-11-13 14:08:23
【问题描述】:

我正在尝试在 drupal 中使用 ckeditor 向 ul 添加一个类

在ckeditor.styles.js中

这行得通

 { name : 'my style', element : 'h1', attributes : { 'class' : 'bigblue' } },

这不是

 { name : 'my list style', element : 'ul', attributes : { 'class' : 'highlight' } },

任何帮助将不胜感激。

【问题讨论】:

    标签: styles drupal-7 ckeditor


    【解决方案1】:

    曾经面临同样的问题。

    实际上,对于这样的样式,您需要使用 CkEditor 创建您的 UL 标记,选择它,然后它将出现在样式组合中,因为它在某种程度上是上下文的。

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2020-01-14
      • 2018-03-19
      • 1970-01-01
      • 1970-01-01
      • 2017-04-08
      • 1970-01-01
      • 2011-01-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多