X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fplugins%2Fsmiley%2Fplugin.js;h=d4ecda6987791e5b48daae8ba9a3ae297dd396ef;hb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;hp=d8a9fbf703edc7606134624468c095f644309d36;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/smiley/plugin.js b/_source/plugins/smiley/plugin.js index d8a9fbf..d4ecda6 100644 --- a/_source/plugins/smiley/plugin.js +++ b/_source/plugins/smiley/plugin.js @@ -9,6 +9,7 @@ CKEDITOR.plugins.add( 'smiley', init : function( editor ) { + editor.config.smiley_path = editor.config.smiley_path || ( this.path + 'images/' ); editor.addCommand( 'smiley', new CKEDITOR.dialogCommand( 'smiley' ) ); editor.ui.addButton( 'Smiley', { @@ -22,6 +23,7 @@ CKEDITOR.plugins.add( 'smiley', /** * The base path used to build the URL for the smiley images. It must end with * a slash. + * @name CKEDITOR.config.smiley_path * @type String * @default {@link CKEDITOR.basePath} + 'plugins/smiley/images/' * @example @@ -29,9 +31,6 @@ CKEDITOR.plugins.add( 'smiley', * @example * config.smiley_path = '/images/smileys/'; */ -CKEDITOR.config.smiley_path = CKEDITOR.basePath + - '_source/' + // @Packager.RemoveLine - 'plugins/smiley/images/'; /** * The file names for the smileys to be displayed. These files must be