Allow inserting Media not just as an embed (<drupal-media>), but as a link

Created on 12 July 2023, over 1 year ago
Updated 16 August 2023, over 1 year ago

Problem/Motivation

Right now it's not possible to select a text, open media library dialog and convert the selection into an inline link.

Problems:

  • Embed media is always rendered as block, destroying the inline text selection.
  • The rendered media is a entity view display, and is not showing the selected text. The linked text should belong to the media instance (to the text where is embedded)

Steps to reproduce

Do a text selection, press Media button and File tab, select a file and press Insert Media.

Result: the selected text is replaced by a media view display which is a block.

Proposed resolution

To be defined...

Remaining tasks

None.

User interface changes

Editors are able to select inline text and link it to a file using media library,

API changes

N/A

Data model changes

N/A

Release notes snippet

TBD

Feature request
Status

Needs work

Version

11.0 🔥

Component
CKEditor 5 

Last updated 3 days ago

Created by

🇵🇹Portugal saidatom Lisbon

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024