Page MenuHomePhabricator

CX2: Selecting a word suggests linking only the first letter
Closed, DuplicatePublic

Description

To reproduce:

  • Translate an article using CX2.
  • Add some text to a translated paragraph.
  • Type a name of an article that exists in the target language. (To test this, I translated to the Hungarian Wikipedia, and typed the word "Magyar".)
  • Select a word that has more than one letter using a mouse: click in the beginning of the word, drag to the end of the word, and release the mouse button.

Observed: The sidebar suggests a link to an article with the same name as the first letter of the selected word. For example, if you are translating into the Hungarian Wikipedia and select the word "Magyar", the article "M" will be suggested:

Screenshot_2018-11-02 Lap fordítása – Wikipédia.png (2,212×972 px, 89 KB)

Expected: The sidebar should suggest a link to the article of the whole word.

Comments:

  • If I select the word by double-clicking, it works as expected.
  • If I click at the beginning of the word, release the mouse button, hold the Shift key, and click in the end of the word, it works as expected.