1/**
2 * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */
5
6CKEDITOR.plugins.add( 'smiley', {
7	requires: 'dialog',
8	lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
9	icons: 'smiley', // %REMOVE_LINE_CORE%
10	hidpi: true, // %REMOVE_LINE_CORE%
11	init: function( editor ) {
12		editor.config.smiley_path = editor.config.smiley_path || ( this.path + 'images/' );
13		editor.addCommand( 'smiley', new CKEDITOR.dialogCommand( 'smiley', {
14			allowedContent: 'img[alt,height,!src,title,width]',
15			requiredContent: 'img'
16		} ) );
17		editor.ui.addButton && editor.ui.addButton( 'Smiley', {
18			label: editor.lang.smiley.toolbar,
19			command: 'smiley',
20			toolbar: 'insert,50'
21		} );
22		CKEDITOR.dialog.add( 'smiley', this.path + 'dialogs/smiley.js' );
23	}
24} );
25
26/**
27 * The base path used to build the URL for the smiley images. It must end with a slash.
28 *
29 *		config.smiley_path = 'http://www.example.com/images/smileys/';
30 *
31 *		config.smiley_path = '/images/smileys/';
32 *
33 * @cfg {String} [smiley_path=CKEDITOR.basePath + 'plugins/smiley/images/']
34 * @member CKEDITOR.config
35 */
36
37/**
38 * The file names for the smileys to be displayed. These files must be
39 * contained inside the URL path defined with the {@link #smiley_path} setting.
40 *
41 *		// This is actually the default value.
42 *		config.smiley_images = [
43 *			'regular_smile.png','sad_smile.png','wink_smile.png','teeth_smile.png','confused_smile.png','tongue_smile.png',
44 *			'embarrassed_smile.png','omg_smile.png','whatchutalkingabout_smile.png','angry_smile.png','angel_smile.png','shades_smile.png',
45 *			'devil_smile.png','cry_smile.png','lightbulb.png','thumbs_down.png','thumbs_up.png','heart.png',
46 *			'broken_heart.png','kiss.png','envelope.png'
47 *		];
48 *
49 * @cfg
50 * @member CKEDITOR.config
51 */
52CKEDITOR.config.smiley_images = [
53	'regular_smile.png', 'sad_smile.png', 'wink_smile.png', 'teeth_smile.png', 'confused_smile.png', 'tongue_smile.png',
54	'embarrassed_smile.png', 'omg_smile.png', 'whatchutalkingabout_smile.png', 'angry_smile.png', 'angel_smile.png', 'shades_smile.png',
55	'devil_smile.png', 'cry_smile.png', 'lightbulb.png', 'thumbs_down.png', 'thumbs_up.png', 'heart.png',
56	'broken_heart.png', 'kiss.png', 'envelope.png' ];
57
58/**
59 * The description to be used for each of the smileys defined in the
60 * {@link CKEDITOR.config#smiley_images} setting. Each entry in this array list
61 * must match its relative pair in the {@link CKEDITOR.config#smiley_images}
62 * setting.
63 *
64 *		// Default settings.
65 *		config.smiley_descriptions = [
66 *			'smiley', 'sad', 'wink', 'laugh', 'frown', 'cheeky', 'blush', 'surprise',
67 *			'indecision', 'angry', 'angel', 'cool', 'devil', 'crying', 'enlightened', 'no',
68 *			'yes', 'heart', 'broken heart', 'kiss', 'mail'
69 *		];
70 *
71 *		// Use textual emoticons as description.
72 *		config.smiley_descriptions = [
73 *			':)', ':(', ';)', ':D', ':/', ':P', ':*)', ':-o',
74 *			':|', '>:(', 'o:)', '8-)', '>:-)', ';(', '', '', '',
75 *			'', '', ':-*', ''
76 *		];
77 *
78 * @cfg
79 * @member CKEDITOR.config
80 */
81CKEDITOR.config.smiley_descriptions = [
82	'smiley', 'sad', 'wink', 'laugh', 'frown', 'cheeky', 'blush', 'surprise',
83	'indecision', 'angry', 'angel', 'cool', 'devil', 'crying', 'enlightened', 'no',
84	'yes', 'heart', 'broken heart', 'kiss', 'mail'
85];
86
87/**
88 * The number of columns to be generated by the smilies matrix.
89 *
90 *		config.smiley_columns = 6;
91 *
92 * @since 3.3.2
93 * @cfg {Number} [smiley_columns=8]
94 * @member CKEDITOR.config
95 */
96