flarum / flarum/issue-archive

Emoji, discussion composer transforming codes incorrectly

Open
#283 3 comments 1 reaction 0 assignees View on GitHub
type/bug
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Explanation

(Probably the 100th issue created about this specific feature lol)
Currently, in any installation of Flarum and even discuss.flarum.org, Emoji's behave in a weird manner when doing the following:

* Choose a thread to post in.
* Start a reply to bring up the composer.
* Created a list of 2-3 random Emoji short-codes that work.
* Go to the 2nd line and backspace until your cursor is right next to the end colon of the send emoji.
* Press enter for a new line and watch as the Emoji changes to either 💯 or something you didn't even pick.

Two examples have been displayed in the "Screenshots" section below.

## Technical details

- Version of Flarum: Beta 7.1 and Master
- Website URL where the bug is visible: This can be reproduced in any discussion really.
- Affected Browsers: Using Firefox Developer Edition (Latest)

## Screenshots

First one is copied and pasted short-codes and pressing the "Enter" key right after each colon:
![](https://i.imgur.com/i9YVYOg.gif)

The second one was done by just typing out the short-code you want and selecting from the picker and then pressing "Enter" after backspacing after the colon:
![](https://s14.postimg.org/rmc84lx7l/emojibug2.gif)

Please feel free to edit the title to something less confusing and appropriate.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the discussion composer using the listed steps: enter several working emoji short-codes, move to the second line, backspace to the ending colon, and press Enter. Compare typed or picker-selected codes with the screenshots; done means pressing Enter no longer transforms the chosen short-code into a different emoji.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.