Allow data-entity-substitution to use configured plugin for media matchers.

Created on 26 July 2022, over 2 years ago
Updated 16 June 2023, over 1 year ago

Currently, the selection response always returns 'media' as the substitution method which is probably correct for the majority of use cases. However, this should match what is configured on the matcher for media entities to account for the other percentages of use cases that will set custom or other default substitution plugins.

Current behavior:

  • Select and insert a media asset added with Media: Acquia Dam
  • Observe the 'data-entity-substitution' attribute value of the resulting markup is 'media'
  • Observe, upon save, that the substitution fails

Expected behavior:

  • Select and insert a media asset added with Media: Acquia Dam
  • Observe the 'data-entity-substitution' attribute value of the resulting markup is 'dam_asset'
  • Observe, upon save, that the substitution is successful
πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lostkangaroo

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