Typing after a footnote in Special:ContentTranslation contenteditable results in superscript text.
|mediawiki/extensions/ContentTranslation : master||Make it possible to adapt references manually to an empty paragraph|
- Mentioned In
- rMEXTbff6a1897ff9: Updated mediawiki/extensions Project: mediawiki/extensions/ContentTranslation…
rECTXcf72dca53458: Make it possible to adapt references manually to an empty paragraph
- Mentioned Here
- T93854: Facilitate editing the text of a link (especially adding text to the beginning/end of it)
Observed a user can stuck at this formatting(superscript) with no way to go back to normal text mode. This is more important when it is not just MT correction but translator actually type lot of text.
Some more details: This isse happens if the superscript is at the end of content in the section. If there are content after the superscript, you can use arrow button to move cursor outside.
In Firefox, you can always go outside the superscript by pressing right arrow, even if there are no content after superscript. Chrome does not allow moving outside if the superscript is the last item in block section- causing a 'stuck' behavior
I suggested some similar solutions for T93854: Facilitate editing the text of a link (especially adding text to the beginning/end of it), I think it is something that may be worth it to solve for any kind of markup (links and superscript being the most critical).
I think that a keyboard way to escape that (using arrows, space, and escape) will be helpful. In addition to that, we can provide an extra "clear format" tool in the styling toolbar that allows users to recover some text from unintended format.
I illustrated the concepts I mentioned above:
In this example, the user moves the cursor to the right:
- When the text cursor is inside a formatting area, the "clear formatting" action of the toolbar becomes active.
- When the text cursor is inside a formatted area that gets highlighted when the user clicks it (like links and references, not bold or italics) the background of the element becomes subtly highlighted to communicate that the user is still editing it.
- When the user tries to move right and reaches the limit of the available text, the formatting is removed for the cursor and the next time the user types it would be in plain text.
Especially with the interaction with text cursor movements it may be a good idea to set some set some experiment texts (e.g., using codepen) in order to check how the different interaction feels in different contexts. There may be also some technical limitations that may limit what we can do here.
In this example, the user types some text next to a reference and selects that text to make it normal again by using the "clear format" tool.