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'],