Bug 167544 - Display "Insert Hyperlink" in context menu when some text is selected
Summary: Display "Insert Hyperlink" in context menu when some text is selected
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:26.2.0 inReleaseNotes:26.2
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-17 14:09 UTC by Samuel Mehrbrodt
Modified: 2025-08-30 09:48 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Mehrbrodt 2025-07-17 14:09:31 UTC
We already have Open,Edit,Remove Hyperlink in the context menu when a hyperlink is selected.

Similar we should have an "Insert Hyperlink" item when the user selects a piece of text which is not yet a hyperlink. This should be placed below the "Insert comment" item.

This allows quick hyperlink creation using the context menu.

MSO and GDocs have a similiar option in their context menu.
Comment 1 m_a_riosv 2025-07-17 23:34:49 UTC
+1
Comment 2 Commit Notification 2025-07-21 13:41:22 UTC
Samuel Mehrbrodt committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/24f3c68d308ad8951493c84a5c517f7f18b0d62d

tdf#167544 Add 'Insert Hyperlink' to context menu when text is selected

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2025-07-24 07:30:57 UTC
Samuel Mehrbrodt committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ffcd9cbaf27e89827d5a5705a17727f9c9c34777

tdf#167544 Properly handle 'Insert hyperlink' for sw shapes

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.