Automatically add a space before the emoji if the user is typing Chinese and uses emoji picker


Hi Discourse team:

I have been using Discourse for 4 years and love the modern design and quick update. Thank you!

Recently I have noticed some issues in my forum, that in China, we seldom use spaces like you do in English, so basically every emoji from emoji picker is screwed like this:


Which is annoying and confuses most Chinese users. Can you think of a way to improve the Chinese user experience?

Thank you!


(Jeff Atwood) #2

Any ideas @joffreyjaffeux?

(Sam Saffron) #4

We half fixed this with:

But what we need to do is match the implementation here:

Which is checking for isSpace or isPunctChar.