admin: don't adjust ckeditor config if there's no ckeditor (#50463)
This commit is contained in:
parent
e365347d2e
commit
330c22eb36
|
@ -18,6 +18,7 @@ $(document).ready( function() {
|
|||
});
|
||||
$(document).on('wcs:dialog-loaded', function(e, dialog) {
|
||||
var $textarea = $(dialog).find('div.WysiwygTextWidget textarea');
|
||||
if ($textarea.length == 0) return;
|
||||
var config = $textarea.data('config');
|
||||
config.width = $(dialog).width();
|
||||
config.height = $textarea.height() + 100;
|
||||
|
|
Loading…
Reference in New Issue