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/');

};

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章