Hi Dennis,
Dennis Heuer schrieb:
On Sat, 19 Aug 2017 14:35:21 +0200
Regina Henschel <rb.hensc...@t-online.de> wrote:
Hi Dennis,
why do you need, that the entire block of text becomes a link? Do I
understand it correctly, that when clicking _somewhere_ in the block,
LO should switch to a different part of the document?
Read my message again. Therein is mentioned an example use-case.
This behaviour (link on div) is actually very very common on internet
and very very useful if the link info is heterogenuous (and thus it
would be cumbersome to find out what is clickable or to always target
at a different (and maybe small) location in an order of
heterogenuous list entries.)
The problem is, that the <text:a> element, which is needed to define
the click-sensitive area, is only allowed inside a paragraph and
therefore cannot contain multiple paragraphs.
It even cannot include a tabulator space whithout replacing the
selection.
That is only a problem with this dialog. The file format has no problems
with tabs. The easiest way to get a hyperlink to paragraph seems to me
this way:
Enter first and last character of the paragraph, might be dummy, which
you deletes later on.
Set the hyperlink to this two characters. Make sure, that you only mark
the characters and that the marked area does not go to the next
paragraphs. You should then have these two characters in the "Text:"
field in the dialog. Enter target and close dialog.
Insert the desired text between the two characters.
Another way would be to edit the hyperlink directly in the file. That
might work, if you use .fodt format and in case you know a little bit
about HTML. If you set the hyperlink at the start of the paragraph, you
only need to shift the </text:a> tag from inside the paragraph to
immediately before the </text:p> element.
Another problem comes with images, which are anchored as character and
therefor are totally inside the paragraph. LibreOffice does not allow
you, to set the <text:a>...</text:a> brackets around shapes or images.
That is no restriction from file format, but only from LibreOffice. You
need to set the hyperlink in the properties of the image. That will
generate a <draw:a> element, not a <text:a> element. That is different
to HTML too.
Are you sure, a text document is the right medium for your purpose?
Kind regards
Regina
--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted