日期:2014-05-17 浏览次数:20670 次
CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; config.toolbar = 'MXICToolbar'; config.toolbar_MXICToolbar = [ ['Source','-','NewPage','Save','Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], '/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Link','Unlink','Anchor'], ['Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'], '/', ['Styles','Format','Font','FontSize'], ['TextColor','BGColor'], ['Maximize','ShowBlock'] ]; }; ...
------解决方案--------------------
CKEDITOR.editorConfig = function(config) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.language = 'zh-cn'; // 配置语言
config.toolbar = 'napoleon';// 工具栏风格Full,Basic
config.toolbar_napoleon = [
[ 'Source', 'Preview', 'Templates' ],
[ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord' ],
[ 'Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll',
'RemoveFormat' ],
[ 'Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript',
'Superscript' ],
[ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent',
'Blockquote' ],
[ 'Maximize' ],
'/',
[ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ],
[ 'Link', 'Unlink' ],
[ 'Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley',
'SpecialChar', 'PageBreak' ],
[ 'Styles', 'Format', 'Font', 'FontSize' ],
[ 'TextColor', 'BGColor' ]
];
};