1/**
2 * Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
3 * Licensed under the terms of the MIT License (see LICENSE.md).
4 *
5 * Basic sample plugin inserting current date and time into the CKEditor editing area.
6 *
7 * Created out of the CKEditor Plugin SDK:
8 * http://docs.ckeditor.com/#!/guide/plugin_sdk_intro
9 */
10
11// Register the plugin within the editor.
12CKEDITOR.plugins.add( 'geshi', {
13
14	// Register the icons. They must match command names.
15	icons: 'geshi',
16    lang: 'en,de,fr',
17
18	// The plugin initialization logic goes inside this method.
19	init: function( editor ) {
20        editor.addCommand( 'geshi', new CKEDITOR.dialogCommand( 'geshiDialog' ) );
21
22		// Create the toolbar button that executes the above command.
23		editor.ui.addButton( 'Geshi', {
24			label:   editor.lang.geshi.title,//'Insert Geshi',
25			command: 'geshi',
26			toolbar: 'insert',
27            icon: this.path + 'icons/geshi.gif',
28		});
29        CKEDITOR.dialog.add( 'geshiDialog', this.path + 'dialogs/geshi.js' );
30	}
31});
32