[editor] Link feature doesn't work correctly when typing Chinese

What’s The Bug?

If you use “paste as link” feature for plain text written in Chinese and type something new (again, in Chinese) in front of the link created, the underlined part wouldn’t shift with the original text it was linked to. Instead, it stays in the same position on the screen and link to other part of the note.
When using copy and paste it’s normal, only happens when user type it.
This doesn’t happen in English but seems to happen to Japanese kana as well (not sure if it’s related to all CJK characters).

How To Reproduce It

  1. Please see the video.

Image or Video

The Expected Behavior

The underlined part should move with the linked text as user type new things in front of the linked text.

Device

Home-built computer

OS

Windows 10 Pro 22H2

Anytype Version

0.47.5

Network Mode

AnySync

Technical Information

OS version: win32 x64 10.0.19045
App version: 0.47.5
Build number: build on 2025-06-27 13:25:58 +0000 UTC at #fcd0f274451d6fd888761f5a67e2aabfb4978335
Library version: v0.41.2
Anytype Identity: AAqr3La83dt9X97U321cdRFj2BGtRYYpLxY3uarioG455LHA
Analytics ID: 695ac646-85b5-4dab-a984-030364675af6
Device ID: 12D3KooWJ1SXfyG3ZYhQHoCCBEeqYAh6tik1vDLeGcMtiBMyZkFX
Ethereum Address: 0xE184127008508f4D51a3eeE9Fe71f5Da17E67533

3 posts were merged into an existing topic: Link Underline Misaligned After Inserting Preceding Chinese Characters