I use smileys with TinyMCE. When I write a smiley and make a space after it, it doesn't show as an image. When I disabled rich-text I saw that the smiley code looks like this :) . Any idea how to fix that?

Also when I activate the options to make the popup box dragable and resizeable, the more link is broken. Nothing happens when I click it. Jquery version is 1.2.6.

CommentFileSizeAuthor
#1 Screenshot-1.png18.24 KBCMangrum

Comments

CMangrum’s picture

StatusFileSize
new18.24 KB

I think I can somewhat confirm this behavior but in the non-dev version. I am using Wysiwyg 6.x-2.1 with TinyMCE 3.3, Smileys 6.x-1.0, and (in case it matters) IMCE 6.x-1.3 with IMCE Wysiwyg API bridge 6.x-1.1.

If I insert a smiley with double spaces behind it, it will not convert it to an image. It seems to only be an issue when there are two spaces after the smiley. Could it be perhaps because the wysiwyg editor is converting the extra space to an " "? That would be my guess. If you look at the source it shows up as " :)  " with the text smiley, followed directly by the non breaking space, then the second unencoded space. If you only use a single space or any other character directly after the smiley it would probably work as is the case for me. Is it possible to alter the module code so the smiley renders correctly even with followed immediately by an ampersand?

Toxid’s picture

Oh, I see now that my first post didn't output right. I meant to write that the output looks like this: :) . However, I've discovered something more. It only happens on the smileys :) and :(. All other smileys works fine. I don't get it with double spaces, just single spaces. All other smileys work with single and double spaces.

Weird...

shenzhuxi’s picture

Also happen for ckeditor. Here is the fix
for 6.X, in smileys.js lin 79
change
var smiley = " " + this.alt + " ";
into
var smiley = this.alt;
to remove