1、首先打开/include/ckeditor 注:这里为本站目录。
2、打开ckeditor文件夹下的ckeditor.js文件,查找代码:
n('Bold',p.bold,'bold',o.coreStyles_bold);
在其后添加代码:
n('Custom',p.custom,'custom',o.coreStyles_custom);
注:这里的Custom为自定义,但必须第一个首字母大写,后面全为小写。
3、继续在ckeditor.js中查找
i.coreStyles_bold={element:'strong',overrides:'b'};
在其后添加代码:
i.coreStyles_custom={element:'custom'};
4、继续在ckeditor.js中查找
i.t