/**
 * @license Copyright (c) 2003-2019, 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 complete reference see:
	// https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html

	// The toolbar groups arrangement, optimized for two toolbar rows.
	config.toolbarGroups = [
		{ groups: ['undo' ] },
		{ name: 'styles'},
		{ name: 'basicstyles', groups: [ 'basicstyles'] },
		{ name: 'paragraph', groups: [ 'list','align'] },
		{ name: 'insert' },

	];

	// Remove some buttons provided by the standard plugins, which are
	// not needed in the Standard(s) toolbar.
	config.removeButtons = 'Underline,Subscript,Superscript';

	// Set the most common block elements.
	config.format_tags = 'p;h1;h2;h3;pre';

	// Simplify the dialog windows.
	config.removeDialogTabs = 'image:advanced;link:advanced';

	config.image_previewText=' '; //预览区域显示内容
	config.filebrowserImageUploadUrl= "test_photo"; //待会要上传的action或servlet  图片上传地址
	config.filebrowserImageBrowseUrl= ""; //待会要上传的action或servlet  图片上传地址

	config.filebrowserFlashUploadUrl = 'video_upload';//定义flash上传的地址, 是上图的CkeditorUploadAction.java. 
	config.filebrowserFlashBrowseUrl = '';//定义flash的 浏览服务器窗口

};
