Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 82e5a153

Von Sven Schöling vor mehr als 1 Jahr hinzugefügt

  • ID 82e5a15300bc0298ce6ec73b6217b19fcf2f6cca
  • Vorgänger 2023d0f7
  • Nachfolger b651d5ef

ckeditor5: javascripte automatisch in P.textarea registrieren wenn class texteditor gesetzt ist

Unterschiede anzeigen:

SL/Presenter/Tag.pm
$attributes{rows} *= 1; # required by standard
$attributes{cols} *= 1; # required by standard
if (join_values(class => $attributes{class}) =~ /\btexteditor\b/) {
$::request->{layout}->add_javascripts("$_.js") for qw(ckeditor5/ckeditor ckeditor5/translations/de);
}
html_tag('textarea', $content, %attributes, name => $name);
}

Auch abrufbar als: Unified diff