html-table - 如何在 ckeditor5 配置中向表元素添加类?
问题描述
我正在编辑 ckeditor5 配置,我需要将自定义类添加到表中。我尝试了什么:
ckeditorConfigRegistry.add(config => ({
toolbar: [...config.toolbar, 'fontColor', 'fontBackgroundColor'],
table: {
customClass: ["table", "table-bordered"]
}
}));
也试过:
table: {
class: "table table-bordered"
}
和:
table: {
attributes: {
class: "table table-bordered"
}
}
任何想法如何在配置中向表元素添加类?
解决方案
推荐阅读
- docker - 仅在容器中运行某些部分的应用程序
- sql-server - 使用 SQL Server 在数据中查找循环
- android - 颤振中是否有任何应用程序交互检测器?
- reactjs - 使用 Express.js、React 和 Socket.io 实现通知系统的最佳方式?
- python-3.x - 根据用户输入对文本文件的句子进行排序
- java - ClassCastException:org.apache.xerces.jaxp.DocumentBuilderFactoryImpl 与 javax.xml.parsers.DocumentBuilderFactory 不兼容
- sql - 在存储过程的情况下,在 sql select 查询中选择变量字符串名称
- xamarin.android - 有没有办法将 Web 服务器连接到我的 xamarin android 应用程序?
- laravel - 如何实现具有可选关系的 hasOne
- python - Unicode文本excel python 2.7