I'm having problems with file usage reporting when embedding files in the body field of nodes via WYSIWYG. It works great for image files, but I can't get it to work for other file types, notably:
- Audio / Video
- Documents displayed using the "Generic file" formatter
- PDF displayed using either PDF.js or pdfpreview

If I understand correctly, media detects file usage by searching for the JSON [[{...}]] placeholder inside the field. Is this only generated for embedded image files? This placeholder seems to be substituted to a containing div (with the media-element-container class) which allows contextual links to be displayed for that image.

I've disabled CKEditor 4's ACF so this isn't the problem...

Anybody knows if this has been implemented yet?

Comments

PascalAnimateur’s picture

PascalAnimateur’s picture

Status: Active » Closed (fixed)

Fixed the problem by patching media_wysiwyg ... see my comment here.

Though I still have problems getting file usage to work on generic file dispay when using ACF.