CKeditor配置问题
CKeditor配置网上有讲到很多,但是是在config.js文件里
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
config.language = 'zh-cn';//配置语言
//config.uiColor = '#AADC6E';//背景颜色
config.width = 400; //宽度
config.height = 200; //高度
config.skin = 'kama'; //编辑器样式
config.toolbar =
[
['Source', '-', 'Preview'], ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'], ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote', 'ShowBlocks'], '/',
['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['Link', 'Unlink', 'Anchor'], ['Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar'], '/',
['Styles', 'Format', 'Font', 'FontSize'], ['TextColor', 'BGColor'], ['Maximize', '-', 'About']
];
};
这样配置不是都固定了啊。比如有两个页面要用到CKeditor
但是一个页面要求编辑器高度为200px,另一个页面要求为100px.
这样不是就难以实现了?
到底该配置呢?
高手帮忙啦~~~~~