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( 'msword', {
13
14	// Register the icons. They must match command names.
15	icons: 'msword',
16    lang: 'en,de',
17
18	// The plugin initialization logic goes inside this method.
19	init: function( editor ) {
20        editor.addCommand( 'msword', new CKEDITOR.dialogCommand( 'mswordDialog' ) );
21
22		// Create the toolbar button that executes the above command.
23		editor.ui.addButton( 'Msword', {
24		label:   editor.lang.msword.title,//'Insert Msword',
25		command: 'msword',
26		//toolbar: 'insert',
27            title: editor.lang.msword.title,
28            icon: this.path + 'icons/msword.png',
29		});
30        CKEDITOR.dialog.add( 'mswordDialog', this.path + 'dialogs/msword.js' );
31	}
32});
33