Drupal 7 CKEditor while replacing from textarea media files are not rendering I'm working with Drupal 7 + WYSIWYG module + CKEditor + Field Collection.

My issue is, CKEditor is not rendering the media files which is included through media browser.

Steps to reproduce:


Create field collection field with unlimited occurrence.
Add some text and audio/video/document file using media browser with media teaser setting.
Now click "Add another item" button.


That's it now new field will be added, but the previous field will only have the text you entered, the media will be gone.

When I debugged the field, I found the values in hidden textarea. When CKEditor tries to render the values, media elements are not rendering.
After a long research I found one solution from here.

The patch they provided works for me.

https://www.drupal.org/files/issues/interdiff_8413.txt

I will leave this question open, so that others can get some help from this.