我想将一些引导类集成到我的 ckeditor 配置文件中:
{ name : 'Button Large' , element : 'a', attributes : { 'class' : 'btn-lg' } },
{ name : 'Button Primary' , element : 'a', attributes : { 'class' : 'btn-primary' } },
但问题是这些样式不能组合。如果我想要一个按钮,btn-primary
我btn-lg
将不得不创建第三种样式:
{ name : 'Button Large Primary' , element : 'a', attributes : { 'class' : 'btn-lg btn-primary' } },
对于许多按钮来说,这显然是多余的,而且没有必要。那么你怎么能做到这一点呢?
使用 CKeditor 4.4.3