Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently when a media object is embedded via the media browser in a WYSIWYG field it ends up inserting a huge chunk of embedded JSON into the text field, much of which comes from the file entity's fields. Given that this data is loaded when the text filter is processed, would it be possible to have it exclude the "fields" portion of the embed code?
Comments
Comment #2
DamienMcKennaComment #3
brockfanning CreditAttribution: brockfanning commentedThat part of the json is to allow the field data to be "overridden" each time a file is embedded. I don't think it's possible to remove that. One thing you could do is make sure no fields on the file types are set to "Overridde in WYSIWYG". That should limit the fields that show up in the json.