Bug 34942 - Auto fill URL from click in Hyperlink Dialog also changes Text field
Summary: Auto fill URL from click in Hyperlink Dialog also changes Text field
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink
  Show dependency treegraph
 
Reported: 2011-03-02 12:39 UTC by James Ronback
Modified: 2024-09-30 16:55 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 James Ronback 2011-03-02 12:39:15 UTC
Test to demonstrate problems in trying to create hyperlinks using copy and paste:

1) Set up a blank page and using Tools set up a hyperlink bar
2) Add the following line to the page:
        Death Risk Rankings,  http://www.deathriskrankings.com/tutorial2.aspx .
3) Copy and paste “Death Risk Rankings” into the target text
4) Note: The selected text starts to appear as text in the target field as you are selecting the text in the document with the cursor, so it begs the question whether you still have to paste it when it is already appears there.
5) Click the cursor in the blank URL field.( Just to be safe but it should not be necessary).
6) Select the URL from the document with your cursor.
7) Note: As soon as you lift you finger off the mouse, the URL appears in BOTH the target text field and the URL field, thus wiping out the the previous text “Death Risk Rankings” in the target field.
8) Paste the URL in the URL field.
9) To try and recover the target, select “Death Risk Rankings” in the document 
10) Note: As as you lift you finger off the mouse the text automatically appears in the target field and the URL field becomes BLANK.
11) Thus you are forced to type in at least one of the fields manually.

I think the problem is related to automatically filling in the target field as you are selecting text from the document with a mouse. This automatic anticipation of what is going to pasted should be turned off when using the hyperlink bar
Comment 1 Rainer Bielefeld Retired 2011-03-02 23:48:52 UTC
[Reproducible] with "LibreOffice 3.3.1  - WIN7  Home Premium (64bit) English UI  [OOO330m19 (build 8 / tag 3.3.1.2)]"

Steps to reproduce:
1. copy / paste complete text of reporter's step 2 into a new blank writer
   document
2. make sure that the hyperlink is a real working hyperlink, not only text

Now we will try to get the hyperlink into text "Death Risk Rankings"

4. Select text "Death Risk Rankings" (using mouse)
5. Menu "Insert Hyperlink"
   Dialog opens, Tex will be already inserted into Text pane, that's comfortable
6. leave dialog open
7. only for testing, selecct some text by mouse or simply move the cursor caret 
   through the document. Dialog text pane always will show welected text, 
   not the text of the caret position (so Text pane will become empty as soon 
   as you start moving caret through document)
8. Reselct  text "Death Risk Rankings"
9. Click into Target pane
10. Click on hyplerink "http://www.deathriskrankings.com/tutorial2.aspx"
    Expected: should be inserted into target pane
    Actual: as expected, but additionally
       unexpected: Text pane also fille dwith hyperlink, 
                   Linked web page became opened in browser.

I did lots of tests, but I did not succeed in using autofill to fill Text pane with text and additionally Target pane with hyperlink

Currently the autofill function only works if caret position is in a word with a "hidden" hyperlink when you open the hyperlink dialog:
- Text word will be shown in Text pane
- Hyperlink will be shown in Hyperlink pane
But IMHO that's only nice information, but not usable for creation of new hyperlinks 

My Summary:
- Help should contribute information concerning auto fill
- Auto difficult to use, you only can fill 1 pane with this function, other 
  one has to be filled from clipboard 8or manual typing)
- Ideas for a solution:
  - Text pane with contents should not be modified with recognized hyperlink
    or nothing, only with a new plain text selection
  - Target pane with contents should not be modified with recognized plain text
    or nothing, only with a new recognized hyperlink
 - Additionally a Hyperlink should not be executed as long as Dialog is open

@Kendy:
Added you to CC because of Missing Help problem. Any Idea who oculd be the right one to fix the dialog problem?

@James Ronback:
The ideal place for your (much better) new comment would have been
Bug 34855 - Unable to create hyperlink by copy and paste
Comment 2 Rainer Bielefeld Retired 2011-05-29 09:39:17 UTC
Obsolete due to 
"Bug 34413 - Menu entry "Hyperlink bar" not checked if activated" Comment 3?
Comment 3 Björn Michaelsen 2011-12-23 11:50:54 UTC Comment hidden (obsolete)
Comment 4 sasha.libreoffice 2012-02-24 23:45:45 UTC
reproduced in 3.5.0 on Fedora 64 bit
Comment 5 A (Andy) 2014-08-02 11:12:04 UTC
reproducible with LO 4.3.0.4 (Win 8.1)
Comment 6 QA Administrators 2015-09-04 02:48:46 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2016-09-20 10:29:57 UTC Comment hidden (obsolete)
Comment 8 Timur 2019-07-02 09:47:28 UTC
Repro 6.4+. But not major, I'd say trivial because you can previously copy hyperlink instead of just clicking in URL.
Comment 9 QA Administrators 2021-07-02 03:42:52 UTC Comment hidden (obsolete)
Comment 10 Rainer Bielefeld Retired 2021-07-02 08:16:32 UTC
😥
Comment 11 QA Administrators 2023-07-03 03:11:58 UTC Comment hidden (obsolete)
Comment 12 jiyahane 2024-09-30 16:53:35 UTC
Best Study Destinations for Pakistani Medical Students 2024
Medical students from Pakistan looking for the best study destinations in 2024 can find top options in this guide. The article covers countries that offer world-class medical education with affordable tuition fees, scholarship opportunities, and globally recognized degrees. Countries like Russia, China, and Turkey are highlighted for their strong medical programs, while details on the application process and language requirements are also provided. Whether you're looking for English-taught programs or exploring scholarships, this guide helps aspiring medical professionals choose the ideal destination. Read more: https://abroadinsightspk.online/best-study-destinations-for-pakistani-medical-students-2024/
Comment 13 jiyahane 2024-09-30 16:54:08 UTC
Universities in Italy for International Students Without IELTS
This guide is perfect for international students, including those from Pakistan, looking to study in Italy without needing IELTS. It provides a comprehensive list of universities in Italy that offer admission without the strict requirement of IELTS scores. You’ll learn about alternative ways to prove English proficiency, such as through previous education in English or interviews. The article also covers how these universities offer English-taught programs, application processes, and the advantages of studying in Italy. If you're considering Italy for your education, this guide is a great starting point. Read more: https://abroadinsightspk.online/universities-in-italy-for-international-students-without-ielts/
Comment 14 jiyahane 2024-09-30 16:55:04 UTC
Best European Countries for Pakistani Students
For Pakistani students looking to study in Europe, this guide provides an in-depth look at the best European countries to consider. The article evaluates countries based on factors like quality of education, affordability, and the availability of scholarships and part-time work opportunities. Learn about top universities in countries such as Germany, Italy, and the UK, along with their respective visa processes and admission requirements. Whether you’re interested in undergraduate or graduate programs, this guide offers valuable information for students looking to study in Europe. Read more: https://abroadinsightspk.online/best-european-countries-for-pakistani-students/