]> CRI, Mines Paris - PSL - ckeditor.git/blobdiff - skins/ckeditor/_source/plugins/smiley/plugin.js
Mimimum syndical pour en faire un produit zope / cmf.
[ckeditor.git] / skins / ckeditor / _source / plugins / smiley / plugin.js
diff --git a/skins/ckeditor/_source/plugins/smiley/plugin.js b/skins/ckeditor/_source/plugins/smiley/plugin.js
new file mode 100644 (file)
index 0000000..bde383b
--- /dev/null
@@ -0,0 +1,94 @@
+/*\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+For licensing, see LICENSE.html or http://ckeditor.com/license\r
+*/\r
+\r
+CKEDITOR.plugins.add( 'smiley',\r
+{\r
+       requires : [ 'dialog' ],\r
+\r
+       init : function( editor )\r
+       {\r
+               editor.config.smiley_path = editor.config.smiley_path || ( this.path + 'images/' );\r
+               editor.addCommand( 'smiley', new CKEDITOR.dialogCommand( 'smiley' ) );\r
+               editor.ui.addButton( 'Smiley',\r
+                       {\r
+                               label : editor.lang.smiley.toolbar,\r
+                               command : 'smiley'\r
+                       });\r
+               CKEDITOR.dialog.add( 'smiley', this.path + 'dialogs/smiley.js' );\r
+       }\r
+} );\r
+\r
+/**\r
+ * The base path used to build the URL for the smiley images. It must end with\r
+ * a slash.\r
+ * @name CKEDITOR.config.smiley_path\r
+ * @type String\r
+ * @default {@link CKEDITOR.basePath} + 'plugins/smiley/images/'\r
+ * @example\r
+ * config.smiley_path = 'http://www.example.com/images/smileys/';\r
+ * @example\r
+ * config.smiley_path = '/images/smileys/';\r
+ */\r
+\r
+/**\r
+ * The file names for the smileys to be displayed. These files must be\r
+ * contained inside the URL path defined with the\r
+ * {@link CKEDITOR.config.smiley_path} setting.\r
+ * @type Array\r
+ * @default (see example)\r
+ * @example\r
+ * // This is actually the default value.\r
+ * config.smiley_images = [\r
+ *     'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif',\r
+ *     'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif',\r
+ *     'devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif',\r
+ *     'broken_heart.gif','kiss.gif','envelope.gif'];\r
+ */\r
+CKEDITOR.config.smiley_images = [\r
+       'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif',\r
+       'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif',\r
+       'devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif',\r
+       'broken_heart.gif','kiss.gif','envelope.gif'];\r
+\r
+/**\r
+ * The description to be used for each of the smileys defined in the\r
+ * {@link CKEDITOR.config.smiley_images} setting. Each entry in this array list\r
+ * must match its relative pair in the {@link CKEDITOR.config.smiley_images}\r
+ * setting.\r
+ * @type Array\r
+ * @default  The textual descriptions of smiley.\r
+ * @example\r
+ * // Default settings.\r
+ * config.smiley_descriptions =\r
+ *     [\r
+ *         'smiley', 'sad', 'wink', 'laugh', 'frown', 'cheeky', 'blush', 'surprise',\r
+ *         'indecision', 'angry', 'angel', 'cool', 'devil', 'crying', 'enlightened', 'no',\r
+ *         'yes', 'heart', 'broken heart', 'kiss', 'mail'\r
+ *     ];\r
+ * @example\r
+ * // Use textual emoticons as description.\r
+ * config.smiley_descriptions =\r
+ *     [\r
+ *         ':)', ':(', ';)', ':D', ':/', ':P', ':*)', ':-o',\r
+ *         ':|', '>:(', 'o:)', '8-)', '>:-)', ';(', '', '', '',\r
+ *         '', '', ':-*', ''\r
+ *     ];\r
+ */\r
+CKEDITOR.config.smiley_descriptions =\r
+       [\r
+               'smiley', 'sad', 'wink', 'laugh', 'frown', 'cheeky', 'blush', 'surprise',\r
+               'indecision', 'angry', 'angel', 'cool', 'devil', 'crying', 'enlightened', 'no',\r
+               'yes', 'heart', 'broken heart', 'kiss', 'mail'\r
+       ];\r
+\r
+/**\r
+ * The number of columns to be generated by the smilies matrix.\r
+ * @name CKEDITOR.config.smiley_columns\r
+ * @type Number\r
+ * @default 8\r
+ * @since 3.3.2\r
+ * @example\r
+ * config.smiley_columns = 6;\r
+ */\r