From edb53ec938c8266647c7854e285f6a7b944d789a Mon Sep 17 00:00:00 2001 From: Babastienne Date: Fri, 3 May 2024 12:33:13 +0200 Subject: [PATCH] Add option to see code source in flatpage --- georiviere/flatpages/static/js/tinymce.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/georiviere/flatpages/static/js/tinymce.js b/georiviere/flatpages/static/js/tinymce.js index c118b787..2fff4cf1 100644 --- a/georiviere/flatpages/static/js/tinymce.js +++ b/georiviere/flatpages/static/js/tinymce.js @@ -5,13 +5,13 @@ tinyMCE.init({ relative_urls : false, remove_script_host : false, plugins: [ - 'autolink lists link image', + 'autolink lists link image code', 'media table paste wordcount', 'visualblocks preview anchor' ], menubar: false, image_caption: true, - toolbar: 'undo redo | styleselect | blockquote | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | link image media | indent outdent | visualblocks', + toolbar: 'undo redo | styleselect | blockquote | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | link image media | indent outdent | visualblocks | code', formats: { informationFormat: { block: 'div', classes: 'information'