5 (function ($, Drupal) {
8 Drupal.behaviors.instagramMediaEntity = {
9 attach: function (context) {
11 instgrm.Embeds.process();
14 //TODO: ckeditor integration still doesn't work
15 // If the instagram card is being embedded in a CKEditor's iFrame the widgets
16 // library might not have been loaded yet.
17 if (typeof instgrm == 'undefined') {
18 $.getScript('//platform.instagram.com/en_US/embeds.js', _init);