OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / scripts / ckeditor4.1.0 / plugins / linkinfo / plugin.js
1 /**
2  * Magic3 CKEditorプラグイン
3  *
4  * JavaScript 1.5
5  *
6  * LICENSE: This source file is licensed under the terms of the GNU General Public License.
7  *
8  * @package    Magic3 Framework
9  * @author     平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
10  * @copyright  Copyright 2006-2013 Magic3 Project.
11  * @license    http://www.gnu.org/copyleft/gpl.html  GPL License
12  * @version    SVN: $Id: plugin.js 5938 2013-04-16 23:20:50Z fishbone $
13  * @link       http://www.magic3.org
14  */
15 (function() {
16         var pluginName = 'linkinfo';
17
18         // Register a plugin named "linkinfo".
19         CKEDITOR.plugins.add( pluginName, {
20                 lang: 'en,ja',
21                 icons: pluginName,
22                 init: function( editor ) {
23                         //if ( editor.blockless ) return;
24
25                         editor.addCommand( pluginName, new CKEDITOR.dialogCommand( 'linkinfoDialog' ) );
26                         CKEDITOR.dialog.add( 'linkinfoDialog', this.path + 'dialogs/linkinfo.js' );
27                         
28                         editor.ui.addButton && editor.ui.addButton( 'LinkInfo', {
29                                 label: editor.lang.linkinfo.toolbar,
30                                 command: pluginName,
31                                 toolbar: 'others'
32                         });
33                 }
34         });
35 })();