OpenCart之CKEditor设置
2013-02-18 11:13
716 查看
OpenCart的1.5.4 – 1.5.5.1版本采用了CKEditor 4.0版本,有的用户会希望使用CKEditor的全部功能,而不是默认定制的,可以做如下修改:
更改config.js
config.js是 CKEditor 的主配置文件,更改config.js来定制自己的 CKEditor 样式:
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
config.filebrowserWindowWidth = ’800′;
config.filebrowserWindowHeight = ’500′;
config.resize_enabled = false;
config.htmlEncodeOutput = false;
config.entities = false;
config.extraPlugins = ‘codemirror’;
config.codemirror_theme = ‘rubyblue’;
config.toolbar = ‘Full’; // 工具栏风格(基础’Basic’、全能’Full’、自定义‘Custom’)
config.toolbar_Custom = [
['Source'],
['Maximize'],
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['SpecialChar'],
‘/’,
['Undo','Redo'],
['Font','FontSize'],
['TextColor','BGColor'],
['Link','Unlink','Anchor'],
['Image','Table','HorizontalRule']
];
};
OpenCart技术交流QQ 1群:282797742
OpenCart技术交流QQ 2群:233273593
更改config.js
config.js是 CKEditor 的主配置文件,更改config.js来定制自己的 CKEditor 样式:
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
config.filebrowserWindowWidth = ’800′;
config.filebrowserWindowHeight = ’500′;
config.resize_enabled = false;
config.htmlEncodeOutput = false;
config.entities = false;
config.extraPlugins = ‘codemirror’;
config.codemirror_theme = ‘rubyblue’;
config.toolbar = ‘Full’; // 工具栏风格(基础’Basic’、全能’Full’、自定义‘Custom’)
config.toolbar_Custom = [
['Source'],
['Maximize'],
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['SpecialChar'],
‘/’,
['Undo','Redo'],
['Font','FontSize'],
['TextColor','BGColor'],
['Link','Unlink','Anchor'],
['Image','Table','HorizontalRule']
];
};
OpenCart技术交流QQ 1群:282797742
OpenCart技术交流QQ 2群:233273593
相关文章推荐
- ckeditor中去除特定元素对话框的设置
- 如何保持用户使用CKeditor时的设置选项(获取+恢复)
- ckeditor 开发者文档配置设置
- OpenCart中PayPal Payments Standard(Paypal 标准支付方式)设置
- 更新OpenCart之CKEditor
- ckeditor常用设置
- OpenCart中PayPal Payments Standard(Paypal 标准支付方式)设置
- ckeditor常用设置
- 关于CKeditor的个性应用设置 转
- OpenCart中PayPal Payments Standard(Paypal 标准支付方式)设置
- ckeditor粘入word内容如何默认设置为保留样式
- ckeditor 设置含有html标签的值
- ckeditor中文文档——开发者文档(3)配置--配置设置
- OpenCart的邮箱设置
- CKEDITOR动态设置的上传路径
- ckeditor默认字体设置
- ckeditor配置设置
- OpenCart 2.x设置SSL访问
- Java 设置添加ckeditor图片上传功能
- ckeditor详细设置