Page MenuHomePhabricator

Cannot place cursor after link when it is at the end of the content on Mobile Visual Editor
Open, Needs TriagePublic

Description

Editing content with a link at the very end makes it impossible to add content after such link. Trying to place the cursor at the end always keeps it inside the link as illustrated in the image below:

TfiBLWD.png (1×720 px, 136 KB)

This is a general issue of Visual Editor on mobile (on desktop support was provided to control the cursor placement in these cases). However, it is particularly relevant for Section Translation where individual sentences are edited. This issue surfaced in recent research with Bengali Wikipedia editors:

[...] the difficulty of adding additional text beyond the final word of prose when it is part of a link. As shown to the right, this editor wanted to add additional text after the link, but wasn’t able to move the cursor outside of the link. They repeatedly inadvertently added text to the link. This ended up being a complete blocker to the editor feeling able to continue translating the target sentence.

Some ideas to improve the situation:

  • Once the cursor is at the end of a link, taping outside (after the contents) moves it at the end after the link. In that way a second tap could lead to moving out of the link.
  • Make the editor behave as if there was an additional space after the content in these cases.

Event Timeline

Based on the description and accompanying video for T274068, this does appear to be the same issue. The only difference maybe worth noting is that in this case it was being observed specifically for mobile browser-based editing.

Same issue as T274068?

As Eli mentioned, the difference is that the current ticket is specifically for mobile. This ma be relevant since there is a workaround for desktop (using keyboard arrows to move pass the link) which is not an option on mobile.

It may make sense to combine both tickets if the solution is expected to be the same for both cases, but I think it would be worth expanding the description to include the specifics of the mobile issue.

Thanks for filing this ticket @Pginer-WMF and @Easikingarmager

I like this approach that Pau suggested:

Once the cursor is at the end of a link, taping outside (after the contents) moves it at the end after the link. In that way a second tap could lead to moving out of the link.

Is this technically possible @matmarex ?

Pginer-WMF renamed this task from Cannot place cursor after after link when it is at the end of the content on Mobile Visual Editor to Cannot place cursor after link when it is at the end of the content on Mobile Visual Editor.Jun 4 2021, 12:26 PM
Pginer-WMF moved this task from Backlog to Mobile editor on the SectionTranslation board.