Make WordPress Core

Opened 8 years ago

Closed 6 years ago

#44477 closed enhancement (wontfix)

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

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

Description

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
7 years ago

  • Component TinyMCEEditor
  • Type defect (bug)enhancement
  • Version 4.9.6

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
6 years ago

  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed

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.