js: force ckeditor textarea width in popups (#83609)

This commit is contained in:
Frédéric Péters 2023-11-16 16:45:51 +01:00
parent 42eaecf796
commit 5c5b83e4d9
1 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,10 @@ var gadjo_js = gadjo_js || {};
/* get title out of html */
var title = $html.find(title_selector).text();
/* force textarea width so the dialog is sized to properly
* embed the ckeditor widget. */
$content.find('textarea[data-config]').attr('cols', '80');
$content.dialog({
modal: modal,
'title': title,