Skip to content

Commit

Permalink
feat(announcement): modifie la configuration de l'éditeur TinyMCE
Browse files Browse the repository at this point in the history
- ajoute un bouton pour coller et coller sans mise en forme
- supprime le bouton de promotion
  • Loading branch information
jboulen committed Sep 17, 2024
1 parent ba1be61 commit 87a3d10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion www/scripts/announcement.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
});
2 changes: 1 addition & 1 deletion www/themes/bootstrap/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
2 changes: 1 addition & 1 deletion www/themes/rennes2/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 87a3d10

Please sign in to comment.