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

DamienMcKenna created an issue. See original summary.

DamienMcKenna’s picture

Title: Shorten media_filter embed code to only store the fid value » Remove "fields" values from the embed code
Issue summary: View changes
brockfanning’s picture

Status: Active » Closed (won't fix)

That 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.