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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual editor is confused by unicode characters #2699

Closed
cyyynthia opened this issue Nov 17, 2024 · 0 comments · Fixed by #2700
Closed

Visual editor is confused by unicode characters #2699

cyyynthia opened this issue Nov 17, 2024 · 0 comments · Fixed by #2700
Labels
bug Something isn't working

Comments

@cyyynthia
Copy link
Collaborator

Describe the bug
In presence of Unicode characters, the visual editor fails to properly place the richtext elements such as tag opening/closing.

To Reproduce
https://app.tolgee.io/projects/1/translations?search=footer-cloud-sent-by

Expected behavior
The <link>blog</link> text to be properly rendered as ~ (link|blog|link).

Screenshots
image

Versions and environment

  • Tolgee Platform version: Cloud
  • Environment: N/A
  • Browser: Chromium Version 131.0.6778.69 (Official Build) Arch Linux (64-bit)

Additional context
Likely to be an issue with Unicode characters; emojis are 2 UTF-16 code units (str = "🐭S"; str[1] !== "S"; str[2] === "S"; str.length === 3)

@cyyynthia cyyynthia added the bug Something isn't working label Nov 17, 2024
@cyyynthia cyyynthia changed the title Visual editor does is confused by unicode characters Visual editor is confused by unicode characters Nov 17, 2024
@stepan662 stepan662 linked a pull request Nov 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant