/**
 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';

	config.enterMode = CKEDITOR.ENTER_BR;
	config.language = 'ja';

	config.filebrowserBrowseUrl = '/editors/ckeditor/kcfinder/browse.php?type=files';
	config.filebrowserImageBrowseUrl = '/editors/ckeditor/kcfinder/browse.php?type=images';
	config.filebrowserFlashBrowseUrl = '/editors/ckeditor/kcfinder/browse.php?type=flash';
	config.filebrowserUploadUrl = '/editors/ckeditor/kcfinder/upload.php?type=files';
	config.filebrowserImageUploadUrl = '/editors/ckeditor/kcfinder/upload.php?type=images';
	config.filebrowserFlashUploadUrl = '/editors/ckeditor/kcfinder/upload.php?type=flash';

	config.allowedContent = true;
	config.toolbarGroups = [
		{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
		{ name: 'tools', groups: [ 'tools' ] },
		{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
		{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
		'/',
		{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
		{ name: 'insert', groups: [ 'insert' ] },
		{ name: 'links', groups: [ 'links' ] },
		'/',
		{ name: 'styles', groups: [ 'styles' ] },
		{ name: 'colors', groups: [ 'colors' ] },
		{ name: 'others', groups: [ 'others' ] },
		{ name: 'about', groups: [ 'about' ] }
	];

	config.removeButtons = 'Print,Preview,NewPage,Save,Templates,SelectAll,SImage,Smiley,Flash,Language,About,Copy,Paste,PasteText,Find,Replace,Undo,Redo,BidiLtr,BidiRtl,ShowBlocks,Cut,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Font';

	config.height = 450;
	config.autoGrow_minHeight = 700;
	config.autoGrow_maxHeight = 1200;
	config.autoGrow_bottomSpace = 50;

	config.extraPlugins = 'div,codemirror,widget,html5video';
	config.versionCheck = false;

};

CKEDITOR.replace( 'editor1', {
　　　　filebrowserUploadMethod:'form'
});
