From 648cdf1440c7719c21ff5846d073db61cee6d61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 24 Jun 2019 23:47:40 +0200 Subject: [PATCH] Fix CKEditor height in dashboard actions form Not wrapping the editor in a `.ckeditor` div made it change height when the editor was loaded. That caused a weird effect for users, and also made some tests fail sometimes since the position of the "Add new document" link might change right when capybara is clicking it. --- app/views/admin/dashboard/actions/_form.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/admin/dashboard/actions/_form.html.erb b/app/views/admin/dashboard/actions/_form.html.erb index 8060b6719..b069d74b7 100644 --- a/app/views/admin/dashboard/actions/_form.html.erb +++ b/app/views/admin/dashboard/actions/_form.html.erb @@ -34,7 +34,9 @@ <%= f.text_field :short_description, label: false %> - <%= f.cktext_area :description, ckeditor: { language: I18n.locale } %> +
+ <%= f.cktext_area :description, ckeditor: { language: I18n.locale } %> +