作者:琴瑟_0203 | 来源:互联网 | 2022-12-09 15:47
我更改了我的CKeditor config.js文件,以包含所有可能的按钮:
CKEDITOR.editorCOnfig= function( config ) {
config.toolbarGroups = [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'forms', groups: [ 'forms' ] },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
{ name: 'links', groups: [ 'links' ] },
{ name: 'insert', groups: [ 'insert' ] },
'/',
{ name: 'styles', groups: [ 'styles' ] },
{ name: 'colors', groups: [ 'colors' ] },
{ name: 'tools', groups: [ 'tools' ] },
{ name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] }
];
};
此配置是使用CKeditor 配置生成器工具生成的.
将更改部署到我的服务器并使用Chrome中的隐身模式刷新页面后,没有更改任何按钮.
如果我直接在我的代码中添加此代码,admin.master
则新按钮会显示.
我可能根本不使用它config.js
吗?