https://bugs.documentfoundation.org/show_bug.cgi?id=169458
Danat <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|NOTABUG |--- Status|RESOLVED |NEW --- Comment #12 from Danat <[email protected]> --- (In reply to Regina Henschel from comment #7) > If you copy a hyperlink, then the content of the clipboard is nothing else > as a pure UTF8 text. If you paste a text over a marked hyperlink, the > hyperlink is replaced by the text. I consider this not a bug but the > expected behavior. > > If you write a hyperlink original in Writer, it is displayed with "blue + > underline" but has originally no character style assigned. If you paste the > clipboard over the hyperlink, the pasted text replaces the hyperlink and is > rendered as determined by a surrounding character style or by the default > character settings in the paragraph style. > > If you use a docx-document, then the hyperlink gets the character style > "Internet Hyperlink". The settings in that style contain a "blue + > underline", so that the text looks like a hyperlinks. When you replace the > hyperlink by the clipboard, that does not change the character style as the > clipboard has only "unformatted text". > > In ODF, the <text:a> element (that is the hyperlink) has itself a > text:style-name attribute to specify how the hyperlink is rendered. The > corresponding <w:hyperlink> element in OOXML has no such attribute. > Therefore LibreOffice is forced to write the "blue plus underline" styling > as attribute of the text when it exports to docx. And then when reloading > the docx-file the text has a character style assigned, which is then still > used when you replace the hyperlink by a simple text. > > Danat: You should really consider using ODF, the native format of > LibreOffice, instead of converting back and forth to OOXML, which always > causes problems and losses. > > To make the pasted text to a hyperlink, type a space after pasting the > clipboard to trigger the AutoCorrect option "URL Recognition", which is on > by default. After the conversion to a hyperlink you can remove the space. 1. It does not work even if you erase the existing link and paste a new one over it Video 2 - https://drive.google.com/drive/folders/1PRDkzM2NQS6eTEn6HuxbcpJvaWWgIQSV?usp=sharing 2. It works in other instances. In other dosuments, you can paste a new link over another one and it opens Video 3 - https://drive.google.com/drive/folders/1ZbrOPZJjuPg3dYbOpRDeaSgXoPKYzgA5?usp=sharing Concerning your other points: 1. A behaviour can be expected, sure, but the big question is: by whom? If it is expected by one person in the whole world, it's not really "expected" 2. The app allows docx format, that's what it does, and LOffice even brags about it on its website. So why not improve that too? Is it the vision of the Document Foundation to offer unfinished products and features because "meh, you should do it the other way"? -- You are receiving this mail because: You are the assignee for the bug.
