I’m not sure I understand what is happening. Is the link being created just around the first letter of your phrase, or the first word? Can you paste in an example of what the link looks like before and after the upgrade (put between backtick marks so it displays correctly in this forum).
I just tried the same thing on both WP 3.5.2, and then when I upgraded to 3.6, and I didn’t see a change.
I went to the Text editor for a post.
I type in the phrase This links to the home page.
I highlighted the phrase and clicked the link button.
I entered my homepage URL and a title, then clicked Add Link.
In both cases, I ended up with the correct link:
<a href="http://vhbt.geefamily.net" title="Home Page" target="_blank">This links to the home page</a>
I also tried in the Visual editor as well, and got the correct link.
This happens if you put the link in before the anchor text
So before 3.6, you could click add the link, put in the link you wanted and then click add a link – it would put the link in the post like this
Where there was no anchor text, but the cursor was left right where the anchor text should be, so you could type that right away.
Now if you insert the link before having anchor text, it drops the cursor at the start of the link, not in the right place to add anchor text.
Try typing the text first, select it, click the link button, add the link and click Add Link.
I’ll play around more with that – it looks like it leaves the cursor in the middle of the link, I’ll have to see if thats better or worse than where it leaves it the other way.
I know it seems like a silly thing, but when one of your primary functions in WP is the add a link, having the cursor end up at the start of anchor text was a nice feature.
When I do it clicking the link first, the cursor still ends up in the right place to add the text – is that not what you are seeing?
Have you tried deactivating all plugins and switching to the default theme to rule out any problems from plugins or another theme?
Also be sure you’ve cleared any caching on your site and browser.
What browser are you using?
Ah, OK, now I understand the problem.
So I followed your instructions: I opened a post to edit, and without highlighting any text, I clicked on the link button, then added my link URL and a title, and clicked Add Link. My link got added and the cursor was positioned to the point where I could start typing in my link text, just before the closing </a tag. This is in WP 3.6, btw.
I’ve tried it in Chrome and IE (cleaned cache on both) and it doesn’t work. The Cursor still goes back to the front of the link (before the .
Odd that is was working for you CrouchingBruin – I guess the code just hates me. Every time I’ve tried it the cursor is position at the beginning of the link.
yup tried that – and this is happened on multiple installs with different themes/plugin combos – deactived everything and switched to defualt and still didn’t work
You’re right, it’s very strange. I first tried it using Pale Moon (a Firefox derivative), and it worked fine. However, I just tried it on Chrome, and the cursor ended up at the beginning of the link. And when I tried it on IE9, it jumped up to the very beginning of the post, not just the beginning of the link. Very strange indeed…
I just tested it in Opera and it seemed to work fine.
Such an odd thing to somewhat break with the upgrade