Support moving link_text to data-link-text attribute

Created on 28 June 2022, almost 3 years ago
Updated 27 January 2025, 2 months ago

Problem/Motivation

If a D7 site was using the media_wysiwyg option for link text as filename this data is lost during the migration. Although there's no native support for this in D9, a few customizations to the media embed form and preprocess can make it work. See example here: https://www.drupal.org/project/drupal/issues/3138257#comment-14586081 ✨ need to be able to override the link text of embedded media files Active

Proposed resolution

Allow passing of link_text tag attribute to data-link-text attribute on new drupal-media element. Shouldn't cause any harm for systems not using it. See attached patch.

✨ Feature request
Status

Needs review

Version

1.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States nsciacca

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024