diff --git a/www/scripts/announcement.js b/www/scripts/announcement.js index e0246be..5eabf61 100644 --- a/www/scripts/announcement.js +++ b/www/scripts/announcement.js @@ -2,6 +2,7 @@ tinymce.init({ selector: '#message', menubar: false, plugins: 'code, emoticons, link', + promotion: false, statusbar: false, - toolbar: 'bold italic underline strikethrough | forecolor backcolor | link unlink | alignleft aligncenter alignright alignjustify | emoticons | code' + toolbar: 'bold italic underline strikethrough | forecolor backcolor | alignleft aligncenter alignright alignjustify | paste pastetext | link unlink | emoticons | code' }); diff --git a/www/themes/bootstrap/theme.php b/www/themes/bootstrap/theme.php index 343d804..cabf402 100644 --- a/www/themes/bootstrap/theme.php +++ b/www/themes/bootstrap/theme.php @@ -23,7 +23,7 @@ $SCRIPTS[] = new Script(URL.'/scripts/events.js'); } elseif ($PAGE_NAME[0] === 'annonce') { $SCRIPTS[] = new Script(URL.'/scripts/tinymce/tinymce.min.js'); - $SCRIPTS[] = new Script(URL.'/scripts/announcement.js'); + $SCRIPTS[] = new Script(URL.'/scripts/announcement.js?v=2'); } $SCRIPTS[] = new Script('//unpkg.com/bootstrap@5.3/dist/js/bootstrap.bundle.min.js'); diff --git a/www/themes/rennes2/theme.php b/www/themes/rennes2/theme.php index f3763f9..dbafa82 100644 --- a/www/themes/rennes2/theme.php +++ b/www/themes/rennes2/theme.php @@ -24,7 +24,7 @@ $SCRIPTS[] = new Script(URL.'/scripts/events.js'); } elseif ($PAGE_NAME[0] === 'annonce') { $SCRIPTS[] = new Script(URL.'/scripts/tinymce/tinymce.min.js'); - $SCRIPTS[] = new Script(URL.'/scripts/announcement.js'); + $SCRIPTS[] = new Script(URL.'/scripts/announcement.js?v=2'); } $SCRIPTS[] = new Script('//static.univ-rennes2.fr/bootstrap/5.3/js/bootstrap.bundle.min.js');