Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji's getting cut in Code #1475

Open
thibaultmol opened this issue Apr 20, 2024 · 1 comment
Open

Emoji's getting cut in Code #1475

thibaultmol opened this issue Apr 20, 2024 · 1 comment
Labels
Bug There is a problem in our source code Code Related to the Markdown Code app Dependencies Any software dependancies problems

Comments

@thibaultmol
Copy link

Description

Certain emoji's (complex ones like country flags) get cutoff when your cursor is in them.

Steps to reproduce

If you paste an emoji like a country flag (ex 馃嚙馃嚜 or 馃嚞馃嚙) in Code and then move your cursor using the arrow keys to the left of emoji, your cursor is actually in the middle of the emoji instead of to the left of it.

So if you then press space or add another letter in that cursor position you cut the emoji.
It goes from this:
image
to this:
image

So to be clear, put your cursor to the right of such an emoji. Then press left arrow key once, now you cursor should be to the left of the emoji (and visually it is) but in reality it's in the middle of the emoji.
image

Relevant logs

No response

Expected behavior

If you press the left arrow key of such an emoji it should be on the left of that

Which operating system are you using?

Linux/BSD/UNIX

What browsers are you seeing the problem on?

Mozilla Firefox

Extensions

Tried in a fresh firefox profile

Version

2024.3.0

@mathilde-cryptpad mathilde-cryptpad added Bug There is a problem in our source code Code Related to the Markdown Code app labels Apr 22, 2024
@davidbenque
Copy link
Contributor

davidbenque commented Apr 23, 2024

I can reproduce this issue on a CodeMirror 5 demo (which we currently use for the Code app) but not on a CodeMirror 6 demo so we can safely assume that this issue will be solved when we upgrade Codemirror across CryptPad.

@mathilde-cryptpad mathilde-cryptpad added the Dependencies Any software dependancies problems label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug There is a problem in our source code Code Related to the Markdown Code app Dependencies Any software dependancies problems
Projects
None yet
Development

No branches or pull requests

3 participants