当前位置: 代码迷 >> Java Web开发 >> ckeditor_3.6.2配置config.js 有关问题
  详细解决方案

ckeditor_3.6.2配置config.js 有关问题

热度:785   发布时间:2016-04-17 10:42:45.0
ckeditor_3.6.2配置config.js 问题
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
   

};

我想问下为什么我打开后会是空空的!什么配置的东西都没!比如工具栏等!!要是不是在这里配置自定的ckeditor那又在哪里弄呢??知道的麻烦告诉下!!谢谢

------解决方案--------------------
JScript code
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' ]

];
};
  相关解决方案