E-Mails als HTML verschicken: Bearbeiten vordefinierter E-Mail-Texte
authorMoritz Bunkus <m.bunkus@linet.de>
Wed, 12 Jan 2022 10:22:33 +0000 (11:22 +0100)
committerMoritz Bunkus <m.bunkus@linet.de>
Wed, 12 Jan 2022 11:30:15 +0000 (12:30 +0100)
bin/mozilla/generictranslations.pl
templates/webpages/generictranslations/edit_email_strings.html

index 4e6d263..de7d924 100644 (file)
@@ -178,6 +178,7 @@ sub edit_email_strings {
   setup_generictranslations_edit_email_strings_action_bar();
 
   $form->{title} = $locale->text('Edit preset email strings');
+  $::request->{layout}->use_javascript(map { "${_}.js" } qw(ckeditor/ckeditor ckeditor/adapters/jquery));
   $form->header();
   print $form->parse_html_template('generictranslations/edit_email_strings',{ 'MAIL_STRINGS' => \%mail_strings });
 
index 2db858d..a25cc7e 100644 (file)
@@ -28,8 +28,8 @@
        [%- END %]
       </td>
       <td>
-       [%- IF mail_string.search('preset') %]
-        <textarea name="translation__[% language.id %]__[% mail_string %]" rows="4" cols="60">[% HTML.escape(language.$mail_string) %]</textarea>
+       [%- IF mail_string.search('preset') && !mail_string.search('subject')%]
+        <textarea name="translation__[% language.id %]__[% mail_string %]" rows="4" cols="60" class="texteditor">[% HTML.escape(language.$mail_string) %]</textarea>
        [%- ELSE %]
         <input name="translation__[% language.id %]__[% mail_string %]" size="40" value="[% HTML.escape(language.$mail_string) %]">
        [%- END %]