Projet

Général

Profil

Révision 0ece262b

Ajouté par Assos Assos il y a plus de 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/media_ckeditor/js/media_ckeditor.format_form.js
25 25
  }
26 26
};
27 27

  
28
/**
29
 * This overrides the function of the same name from media/modules/media_wysiwyg/js/media_wysiwyg.format_form.js
30
 * It provides an implementation of that function that escapes user input from
31
 * overridden fields on the format form.
32
 */
33
Drupal.media.formatForm.escapeFieldInput = function(input) {
34
  // We escape the input here, in a similar manner to what CKEditor's widget
35
  // system does. This helps to make the "tagmap" accurate when the content is
36
  // edited again in the future, and so CKEditor will recognize the token as a
37
  // widget that needs to be upcast.
38
  return $('<div>').text(input).html();
39
}
40

  
28 41
})(jQuery);

Formats disponibles : Unified diff