Projet

Général

Profil

0001-admin-don-t-adjust-ckeditor-config-if-there-s-no-cke.patch

Frédéric Péters, 22 janvier 2021 22:24

Télécharger (943 octets)

Voir les différences:

Subject: [PATCH] admin: don't adjust ckeditor config if there's no ckeditor
 (#50463)

 wcs/qommon/static/js/qommon.wysiwyg.js | 1 +
 1 file changed, 1 insertion(+)
wcs/qommon/static/js/qommon.wysiwyg.js
18 18
  });
19 19
  $(document).on('wcs:dialog-loaded', function(e, dialog) {
20 20
    var $textarea = $(dialog).find('div.WysiwygTextWidget textarea');
21
    if ($textarea.length == 0) return;
21 22
    var config = $textarea.data('config');
22 23
    config.width = $(dialog).width();
23 24
    config.height = $textarea.height() + 100;
24
-