Make WordPress Core

Opened 6 years ago

Closed 3 years ago

#44477 closed enhancement (wontfix)

Add Media on selected text should use the text as the link anchor.

Reported by: dotancohen's profile dotancohen Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:


The the site admin or editor selects text in the WYSIWYG control and presses the "Add Media" button, the link has the media filename or title as the anchor text.

Instead, the anchor text should be the highlighted text.

Change History (2)

#1 @azaozz
5 years ago

  • Component changed from TinyMCE to Editor
  • Type changed from defect (bug) to enhancement
  • Version 4.9.6 deleted

If I understand right, the idea is to turn the selected text into a link when selecting a file from the media library that will produce a link (i.e. not image, video or audio). Perhaps we can do that, would be an "extension" of turning the selected text into a link when pasting an URL.

Moving to the "Editor" component for consideration for the block editor.

#2 @noisysocks
3 years ago

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

This enhancement should no longer be necessary as inserting media is now done via adding a media block which has no possibility of text selection.

Note: See TracTickets for help on using tickets.