2 * CKEditor(WYSIWYGエディター)の設定
4 * LICENSE: This source file is licensed under the terms of the GNU General Public License.
6 * @package Magic3 Framework
7 * @author 平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
8 * @copyright Copyright 2006-2013 Magic3 Project.
9 * @license http://www.gnu.org/copyleft/gpl.html GPL License
10 * @version SVN: $Id: ckconfig_direct.js 5950 2013-04-19 13:10:35Z fishbone $
11 * @link http://www.magic3.org
15 CKEDITOR.editorConfig = function( config ) {
16 // Define changes to default configuration here.
17 // For the complete reference:
18 // http://docs.ckeditor.com/#!/api/CKEDITOR.config
19 config.language = 'ja';
20 config.enterMode = CKEDITOR.ENTER_BR; // 改行をbrに変更
21 config.shiftEnterMode = CKEDITOR.ENTER_DIV;
22 config.autoParagraph = false;
23 config.fillEmptyBlocks = false; // 「 」が自動的に入るのを防ぐ
24 config.toolbarCanCollapse = true; // ツールバー表示制御
28 { name: 'others', items: [ 'LinkInfo' ] }
32 config.extraPlugins = 'linkinfo';
33 // config.autoGrow_maxHeight = 800; // 指定サイズまで入力に合わせて拡大
36 /*CKEDITOR.on('dialogDefinition', function(ev){
37 var dialogName = ev.data.name;
38 var dialogDefinition = ev.data.definition;
39 var dialog = dialogDefinition.dialog;
41 if (dialogName == 'image' || dialogName == 'flash'){
42 dialogDefinition.removeContents('Upload'); // 「アップロード」タブ削除