WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#31678 closed enhancement (invalid)

Insert/Add Link Doesn't Add The Title Between The a Tags

Reported by: wordpresssites Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.1.1
Component: TinyMCE Keywords:
Focuses: Cc:

Description

I the text editor, if you click Insert/Edit Link and select existing content the title for the existing content is highlighted and included

<a href='http://postimage.org/' target='_blank'><img src='http://s13.postimg.org/mcrosmfev/insert_edit_link.png' border='0' alt="insert edit link" /></a>

But when you click Add, the title is not included between the a tags so there's no visible title therefore no link on the front end meaning you have to edit the HTML or manually add the title.

<a href='http://postimage.org/' target='_blank'><img src='http://s23.postimg.org/hpurj4qy3/html_link.png' border='0' alt="html link" /></a>

As an enhancement, to save time, this could be modified to wrap the title in the a tags.

Attachments (2)

html-link.png (26.8 KB) - added by wordpresssites 5 years ago.
HTML
insert:edit-link.png (61.8 KB) - added by wordpresssites 5 years ago.
Insert/Edit Link

Download all attachments as: .zip

Change History (7)

@wordpresssites
5 years ago

HTML

@wordpresssites
5 years ago

Insert/Edit Link

#1 @DrewAPicture
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi @wordpresssites, welcome to Trac!

We've actually adjusted this workflow in trunk and the changes will ship with 4.2. The Title field was previously used to populate the title attribute, and that's been removed in the spirit of good accessibility. The new Link Text field does what you're asking for:

http://f.cl.ly/items/3b1e1s1o2v1h0L3S2l0l/Screen%20Shot%202015-03-17%20at%2011.53.05%20PM.png

#2 follow-up: @mobiFlip
5 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

Insert link title is now missing completely? -.- this is not an acceptable solution. screen reader use the title as well as it indicates the link target.

#3 in reply to: ↑ 2 @SergeyBiryukov
5 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed

Replying to mobiFlip:

Insert link title is now missing completely? -.- this is not an acceptable solution. screen reader use the title as well as it indicates the link target.

Title attributes actually have no useful purpose for accessibility, see #24766.

This was a deliberate change, please see the discussion in #32095 for an explanation.

This specific bug report is unrelated, re-closing.

#4 @wordpresssites
5 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

@SergeyBiryukov

Not acceptable because it takes longer to add related post links in the editor as you now need to add the title manually. Its a backwards solution and not a real enhancement because it now requires double handling and is therefore less efficient. The title text is already there and saved but now you are forcing manual insertion of it again.

Last edited 5 years ago by wordpresssites (previous) (diff)

#5 @ocean90
5 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed

Please continue any discussion on #32095.

This specific bug report is unrelated, re-closing.

Note: See TracTickets for help on using tickets.