From: Moritz Bunkus Date: Wed, 12 Jan 2022 10:41:20 +0000 (+0100) Subject: E-Mails als HTML verschicken: Bearbeiten Benutzer-Signatur (Admin-Bereich) X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~220^2~7 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8b4cefe7bbc22c5c8a855a55c7bc7c0c735994c2;p=kivitendo-erp.git E-Mails als HTML verschicken: Bearbeiten Benutzer-Signatur (Admin-Bereich) --- diff --git a/SL/Controller/Admin.pm b/SL/Controller/Admin.pm index e6200896c..c22fdca74 100644 --- a/SL/Controller/Admin.pm +++ b/SL/Controller/Admin.pm @@ -592,6 +592,13 @@ sub use_multiselect_js { return $self; } +sub use_ckeditor_js { + my ($self) = @_; + + $::request->{layout}->use_javascript("${_}.js") for qw(ckeditor/ckeditor ckeditor/adapters/jquery); + return $self; +} + sub login_form { my ($self, %params) = @_; $::request->layout(SL::Layout::AdminLogin->new); @@ -601,7 +608,7 @@ sub login_form { sub edit_user_form { my ($self, %params) = @_; - $self->use_multiselect_js->render('admin/edit_user', %params); + $self->use_multiselect_js->use_ckeditor_js->render('admin/edit_user', %params); } sub edit_client_form { diff --git a/templates/webpages/admin/edit_user.html b/templates/webpages/admin/edit_user.html index 1a90d3f29..1676be313 100644 --- a/templates/webpages/admin/edit_user.html +++ b/templates/webpages/admin/edit_user.html @@ -40,7 +40,7 @@ [% LxERP.t8('Signature') %] - [% L.textarea_tag("user.config_values.signature", props.signature, rows=3, cols=35) %] + [% L.textarea_tag("user.config_values.signature", props.signature, rows=3, cols=35, class="texteditor") %]