From f12321dc9d7ac93bad5136bcb6e672c9c64a11cb Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 24 Feb 2014 03:49:17 +0100 Subject: [PATCH] Fixed smiley issue --- com.woltlab.wcf/templates/__messageFormSmilies.tpl | 2 +- wcfsetup/install/files/js/WCF.Message.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/com.woltlab.wcf/templates/__messageFormSmilies.tpl b/com.woltlab.wcf/templates/__messageFormSmilies.tpl index 5efac62bc8..a4204abeba 100644 --- a/com.woltlab.wcf/templates/__messageFormSmilies.tpl +++ b/com.woltlab.wcf/templates/__messageFormSmilies.tpl @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index e4927d79f0..4644e6de60 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -544,11 +544,10 @@ WCF.Message.Smilies = Class.extend({ _smileyClick: function(event) { var $target = $(event.currentTarget); var $smileyCode = $target.data('smileyCode'); + var $smileyPath = $target.data('smileyPath'); // get ckEditor var $ckEditor = this._ckEditor.ckeditorGet(); - // get smiley path - var $smileyPath = $target.find('img').attr('src'); // add smiley to config if (!WCF.inArray($smileyCode, $ckEditor.config.smiley_descriptions)) { @@ -560,7 +559,7 @@ WCF.Message.Smilies = Class.extend({ // in design mode var $img = $ckEditor.document.createElement('img', { attributes: { - src: $smileyPath, + src: $ckEditor.config.smiley_path + $smileyPath, 'class': 'smiley', alt: $smileyCode } -- 2.20.1