JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.2.2
[ckeditor.git] / _source / plugins / smiley / plugin.js
index d8a9fbf..4d509ae 100644 (file)
@@ -9,6 +9,7 @@ CKEDITOR.plugins.add( 'smiley',
 \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
@@ -22,6 +23,7 @@ CKEDITOR.plugins.add( 'smiley',
 /**\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
@@ -29,9 +31,6 @@ CKEDITOR.plugins.add( 'smiley',
  * @example\r
  * config.smiley_path = '/images/smileys/';\r
  */\r
-CKEDITOR.config.smiley_path = CKEDITOR.basePath +\r
-       '_source/' +            // @Packager.RemoveLine\r
-       'plugins/smiley/images/';\r
 \r
 /**\r
  * The file names for the smileys to be displayed. These files must be\r
@@ -65,7 +64,7 @@ CKEDITOR.config.smiley_images = [
  * config.smiley_descriptions =\r
  *     [\r
  *         'smiley', 'sad', 'wink', 'laugh', 'frown', 'cheeky', 'blush', 'surprise',\r
- *         'indecision', 'angry', 'angle', 'cool', 'devil', 'crying', 'enlightened', 'no',\r
+ *         'indecision', 'angry', 'angel', 'cool', 'devil', 'crying', 'enlightened', 'no',\r
  *         'yes', 'heart', 'broken heart', 'kiss', 'mail'\r
  *     ];\r
  * @example\r
@@ -80,6 +79,6 @@ CKEDITOR.config.smiley_images = [
 CKEDITOR.config.smiley_descriptions =\r
        [\r
                'smiley', 'sad', 'wink', 'laugh', 'frown', 'cheeky', 'blush', 'surprise',\r
-               'indecision', 'angry', 'angle', 'cool', 'devil', 'crying', 'enlightened', 'no',\r
+               'indecision', 'angry', 'angel', 'cool', 'devil', 'crying', 'enlightened', 'no',\r
                'yes', 'heart', 'broken heart', 'kiss', 'mail'\r
        ];\r