When users select a piece of text, CX provides suggestions to add a link. In some cases these suggestions are not useful or are missing. In those cases users may want to link to a specific page.
To do so, we can provide a card to add a link. When link cards are shown, the card will be labeled as "Link to another page" and it will be shown right after the link cards. If there are no link cards, the card would just say "Add link".
Once the user clicks on the card, a link selector (based on T76397) will be provided.
- When the selector is shown the previous link cards will be hidden.
- The selector will show an initial list of links based on (a) a search query based on the current selected text, and (b) the adapted version of the links in the source paragraph (or the ones not added yet if we have to prioritise). The later criteria is important to support the easy addition of links for languages without Machine Translation.
- A keyboard shortcut for adding link can be provided to facilitate the process. Control+K. Pressing that opens the "Add link" card with initial list of links(see above point)
- Link insertion will allow to generate red links and external links.
This is an iteration of an older Mingle card: https://wikimedia.mingle.thoughtworks.com/projects/language_engineering/cards/4579