As reported at https://en.wikipedia.org/wiki/Wikipedia:VisualEditor/Feedback#Can.27t_type_because_it_switches_characters , try and VEdit the table at https://en.wikipedia.org/w/index.php?title=List_of_predecessors_of_sovereign_states_in_North_America&veaction=edit . For example, where it says "Colony of Antigua (1671–1816; 1833–1958) (part of British Leeward Islands)", try to add something after Islands, then hit Enter. See how the word is now in a new position, part of (in other cases, label for) the previous wikilink.
Description
Details
Related Objects
Event Timeline
Can reproduce locally with the following cut-down test case:
{| class="wikitable" |- ! Sovereign state ! Predecessors |- | [[Antigua and Barbuda]] | [[File:Flag of Leeward Islands 1871-1956.gif|24px]] [[History of Antigua and Barbuda#European colonization|Colony of Antigua]] (1671–1816; 1833–1958) ''(part of [[British Leeward Islands]])''<br/>[[File:Flag of Leeward Islands 1871-1956.gif|24px]] [[History of Antigua and Barbuda#European colonization|Colony of Barbuda]] |} == See also ==
When I type "foo" before the close paren, the *model* shows the insertion as occurring inside the link, although it shows up "as expected" outside the link... until you hit enter. After you hit enter, the model and the view are in sync again. And in fact if you then Ctrl-Z undo, the view stays in sync with the model as your typing is undone.
(Looks like a pure VE bug, no Parsoid involvement.)
This seems to be happening outside tables as well? Check this diff - in particular what happened when I changed Queensland to Maryland in both target and label, and July 2014 to July 2017. This is probably UBN at this point. Related thread at en.wp.
Looks like some issues with view/model cursor offsets in CE code. I get an exception as soon as I double click on the table cell. (that was with TOC enabled) Pinging @dchan.
The problem appears to be caused by the inline image - I imagine it is not getting counted properly during offset conversion. Simply cursoring off the image to the right jumps you an extra two places.
Minimal wikitext:
Inline [[File:Flag_of_Leeward_Islands_1871-1956.gif|24x24px]] image
Change 360907 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/VisualEditor@master] Ensure MWInlineImage's get the ve-ce-leafNode class
Change 360911 had a related patch set uploaded (by Esanders; owner: Esanders):
[VisualEditor/VisualEditor@master] Use instanceof to check for LeafNode's
Change 360911 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] ce.TextState#getChunks: Use instanceof to check for LeafNodes
Change 361683 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (b3ce1967f)
Change 360907 merged by Jforrester:
[mediawiki/extensions/VisualEditor@master] Ensure MWInlineImages get the ve-ce-leafNode class
Change 361683 merged by Jforrester:
[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (b3ce1967f)