问题描述
不幸的是,对于“CKEditor 链接按钮”或“ckeditor 按钮外观链接”等搜索请求,没有实际结果。但我不认为CKEditor不可能添加如下橙色按钮的链接,因为这是客户的基本需求。
解决方法
您可以使用 decorator。这将是您传递给 ClassicEditor.create
link: {
decorators: {
buttonLink: {
mode: 'manual',label: 'Style as button',defaultValue: false,attributes: {
class: 'link-button'
}
}
}
}
界面看起来像
那么您只需要为 a.link-button
制作一个 css 样式即可。