I had a similar problem when I added a page to my website and added an additional word to my header box to enable a site visitor to click on the to word to take to another page. When I added a ‘Link’ to the word this worked fine, but, the previous word "CONTACT’ page also changed itself to the same http page address.
When I changed the previous word link back to its correct original link address the following newly added word also changed its link to the previous word link. Both words kept retaining the same link code, although there was space between them. – they seemed to be magnetically joined together.
I found away around this by deleting the new, added word AND the previous existing word (and therefore its link), then, retyping in the two separate header words and then adding in their separate links. They then remained separate links.
When you type immediately after some text that contains a link, the link is extended to include the new text. The same thing happens if you type text at the end of a span (the span is extended).
There isn’t (currently) an easy way to avoid this: sometimes it’s what you want to happen, and sometimes it isn’t. If you don’t want the next text to be added to the link (or span), the simplest thing is to remove the link (or span) from the existing text, then add it back after you’ve entered the new text. To remove a link, you can put a text insertion point inside the text that contains the link and choose None from the Link Type popup in the Link Inspector. (Similarly for a span, choose None from the Type popup in the Span Inspector.) You don’t actually need to delete the text to which the link (or span) is applied.
Another trick is to type a carriage return after the word to which a link is applied, since links (and spans) are never extended across paragraphs. When you’ve typed some new text, add a new link and delete the carriage return before it.
OK, thanks; got that now. (by-the-by, Just been teaching myself HTML and CSS scripting: it’s useful to know something about what you are doing with website design.)
A good book is ‘HTML & CSS , design and build websites’ by Jon Duckett.
I encountered this very issue only yesterday - adding what I wanted to be plain text at the end of a line that previously ended with a link. After a fair bit of muttering I thought of the workaround myself - typing the new text on a new line then deleting the carriage return at the start of that new line to make that text appear at the end of the previous line.
I think the option of removing the link then re-adding it is clunky (I did consider doing that too). The link might be a long external URL you have to cut so that you can paste later, and re-adding it is a 4-step process (select the text again to be the link, click on the link icon in the inspector panel, select the type of link from the drop-down, paste the link URL back in).
I think the ‘easy’ way to solve this is to assume that once a link is created any subsequent text typed immediately before or after the link is not text to be added to the link.
In the (IMHO) less common situation that you actually want to change the link text, that is easy using the existing interface. Click inside the link and insert new text there directly in the GUI, or if you need to add new text at the start of the link, click just after the first letter in the link, type the new text, and then delete the first letter.
But an even better way would be to use the Link Inspector panel and be able to edit the link text there. If you edit the link “Title” text in the Inspector Panel it doesn’t actually change the text used for the link in the main screen. I assume that’s because the “Title” text in the inspector panel is actually intended to be a tooltip or accessibility text when hovering over the link. So then add a further box to the Link Inspector called “Link Text” which shows exactly the current text used for the link, and make that editable.
Note the current behaviour is also arguably inconsistent - if you click and place the text cursor immediately before an existing link, any text typed is plain text and not text added to the link. But that’s not what happens if you click and place the text cursor immediately after an existing link.
Note the current behaviour is also arguably inconsistent - if you click and place the text cursor immediately before an existing link, any text typed is plain text and not text added to the link. But that’s not what happens if you click and place the text cursor immediately after an existing link.
It’s consistent with what happens with styled text in TextEdit and Pages (and other applications): if you type “world” in italic, any text you add to the end of “world” will also be italic, while any text you add before it will not be.
We have an issue logged on this - but there are workarounds, and there are other things that we plan to address first.
A possible solution would be to allow part of a link (or span) to be removed. In TextEdit and other editors, you can select part of an italic phrase and de-italicize it. We can probably do the same in Xway, but the underlying machinery is more complex because Xway converts text into an HTML tree structure.