Changes by Marius Dumitru Florea on 12/Nov/26 10:25
Documentation in Release Notes:
N/A
Documentation:
N/A
Resolution:
Fixed
Tests:
Integration
Status:
OpenClosed
1 comment
Marius Dumitru Florea on 12/Nov/26 10:26
Fixed in [5cfb70ee2aa|https://github.com/xwiki/xwiki-platform/commit/5cfb70ee2aa] (not pushed yet). The link created from a text selection with the formatting toolbar now uses the display text of the link modal: * *Display text left unchanged* (it's pre-filled with the selected text): the selection is linked in place, so it keeps its inline formatting, e.g. a bold part of the selected text. * { *}Display text changed{*}: the selection is replaced with the new display text, which keeps the formatting shared by the whole selection (e.g. a bold word stays bold), like typing over the selection does. Note that whatever the selection held besides text (e.g. an inline macro) is replaced too. * { *}Display text emptied{*}: the link label is generated from the link target (e.g. the page title), and it replaces the selection unless it's the same as the selected text.
The selected text is now read when the link modal is opened, so it's compared with the display text the user submits.
The links inserted with the {{/link}} quick action already used the display text, and so did the edited links: when the display text of an edited link is left unchanged, its text keeps its inline formatting, which is now tested as well.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.