OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / scripts / m3 / ckconfig_direct.js
1 /*
2  * CKEditor(WYSIWYGエディター)の設定
3  *
4  * LICENSE: This source file is licensed under the terms of the GNU General Public License.
5  *
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
12  */
13
14
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;         // 「&nbsp;」が自動的に入るのを防ぐ
24         config.toolbarCanCollapse = true;               // ツールバー表示制御
25         
26         // ツールバーの設定
27         config.toolbar = [
28                 { name: 'others', items: [ 'LinkInfo' ] }
29         ];
30         
31         // 追加プラグインの設定
32         config.extraPlugins = 'linkinfo';
33 //      config.autoGrow_maxHeight = 800;                // 指定サイズまで入力に合わせて拡大
34         
35 };
36 /*CKEDITOR.on('dialogDefinition', function(ev){
37         var dialogName = ev.data.name;
38         var dialogDefinition = ev.data.definition;
39         var dialog = dialogDefinition.dialog;
40         
41         if (dialogName == 'image' || dialogName == 'flash'){
42                 dialogDefinition.removeContents('Upload');      // 「アップロード」タブ削除
43         }
44 });*/