      1 /*
      2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
      3 For licensing, see LICENSE.html or http://ckeditor.com/license
      4 */
      5
      6 CKEDITOR.plugins.add( 'smiley',
      7 {
      8 	requires : [ 'dialog' ],
      9
     10 	init : function( editor )
     11 	{
     12 		editor.addCommand( 'smiley', new CKEDITOR.dialogCommand( 'smiley' ) );
     13 		editor.ui.addButton( 'Smiley',
     14 			{
     15 				label : editor.lang.smiley.toolbar,
     16 				command : 'smiley'
     17 			});
     18 		CKEDITOR.dialog.add( 'smiley', this.path + 'dialogs/smiley.js' );
     19 	}
     20 } );
     21
     22 CKEDITOR.config.smiley_path = CKEDITOR.basePath +  '_source/plugins/smiley/images/';
     23
     24 CKEDITOR.config.smiley_images = [ 'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif',
     25 	'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif',
     26 	'devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif',
     27 	'broken_heart.gif','kiss.gif','envelope.gif'];
     28
     29 CKEDITOR.config.smiley_descriptions = [ ':)', ':(', ';)', ':D', ':/', ':P', '', '', '', '', '', '', '', ';(', '', '', '', '', ':kiss', '' ];
     30
     31 CKEDITOR.config.smiley_columns = 8;
     32