HomePhabricator

Allow placing cursor inside empty list when translating from scratch

Authored by santhosh.

Description

Allow placing cursor inside empty list when translating from scratch

Testplan:
Translate any page with list. Translate such a section, clear it using
"Clear paragraph", try typing to the list items. You should be able
to type there.

Alternatively, try language pairs with different directionality or
choose 'Disable machine translation'

There is some code duplication in the place the fix was made.
Deferred to another commit.

Bug: T103504
Change-Id: I52a26d67aef2e8e248565fb7f8ccc3b0b36d6571