5 (function ($, Drupal) {
8 Drupal.behaviors.twitterMediaEntity = {
9 attach: function (context) {
11 twttr.widgets.load(context);
14 // If the tweet is being embedded in a CKEditor's iFrame the widgets
15 // library might not have been loaded yet.
16 if (typeof twttr == 'undefined') {
17 $.getScript('//platform.twitter.com/widgets.js', _init);