CKEDITOR 配置

df sdf sd fdsf sd

/**
 * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
 */

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
    // 界面语言,默认为 'en'
    config.language = 'zh-cn';
    // 设置宽高
    config.width = 1100;
    config.height = 550;
    config.toolbarGroups = [
			{ name: 'insert', groups: [ 'insert' ] },
			{ name: 'colors', groups: [ 'colors' ] },
			{ name: 'links', groups: [ 'links' ] },
			{ name: 'undo', groups: [ 'undo' ] },
			{ name: 'tools', groups: [ 'tools' ] }
		];

		config.removeButtons = 'DocProps,Cut,Copy,Paste,PasteText,PasteFromWord,Find,Replace,Subscript,Superscript,Outdent,Indent,SpecialChar,Styles,Html5video,RemoveFormat,Source,Font,FontSize';
// config.removeButtons= 'Emojione';
    config.extraPlugins = 'codesnippet';
    config.codeSnippet_theme = 'pojoaque';
    
   
    // 背景颜色
   // config.uiColor = '#fff';
    // 工具栏(基础'Basic'、全能'Full'、自定义)plugins/toolbar/plugin.js
    //config.toolbar = 'Basic';
   // config.toolbar = 'Full';
   
    //主题
   // config.theme = 'default';
    //撤销的记录步数 plugins/undo/plugin.js
    config.undoStackSize =20;
    // 在 CKEditor 中集成 CKFinder,注意 ckfinder 的路径选择要正确。
    //CKFinder.SetupCKEditor(null, '/ckfinder/');

};

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值