Load all frontend packages conditionally

This commit is contained in:
Bernd Bestel
2023-05-21 10:56:38 +02:00
parent d16d976d0b
commit f427849e89
57 changed files with 580 additions and 487 deletions

View File

@@ -0,0 +1,13 @@
$("textarea.wysiwyg-editor").summernote({
minHeight: "300px",
lang: __t("summernote_locale"),
callbacks: {
onImageLinkInsert: function(url)
{
// Summernote workaround: Make images responsive
// By adding the "img-fluid" class to the img tag
$img = $('<img>').attr({ src: url, class: "img-fluid" })
$(this).summernote("insertNode", $img[0]);
}
}
});