【问题标题】:unable to add a icon to a new custom RTE plugin in aem无法将图标添加到 aem 中的新自定义 RTE 插件
【发布时间】:2021-10-06 09:24:41
【问题描述】:

一个新插件已经添加到现有插件列表中,这个新添加的插件图标没有定义,那么如何给这个新插件添加一个图标。

【问题讨论】:

    标签: aem


    【解决方案1】:

    这里是添加自定义插件到 RTE 工具栏的详细示例 - https://experience-aem.blogspot.com/2021/03/aem-cloud-service-css-and-color-picker-plugin-rte-rich-text-editor.html

    这一行添加了新插件的图标:

    tbGenerator.registerIcon(groupFeature, "colorPalette");

    重点是,我们正在重用库中的珊瑚图标。图标列表定义为here。这也更容易重用珊瑚图标而不是定义新的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-21
      • 2019-01-11
      • 1970-01-01
      • 2015-02-03
      相关资源
      最近更新 更多