Commit 62b9e451 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Merge branch 'feature_ajout_bouton_code_tinymce' into 'master'

Edition d'un template : ajout du bouton 'source code'

See merge request !5
parents 02889653 9c83c6b6
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -51,8 +51,8 @@ $canTemplate = $this->isAllowed(DocumenttemplatePrivileges::getResourceId(Docume
        tinymce.init({
            selector: '.description',
            menubar: false,
            plugins: 'lists template link',
            toolbar: 'newdocument undo redo | bold italic | bullist numlist | link ',
            plugins: 'lists template link code',
            toolbar: 'newdocument undo redo | bold italic | bullist numlist | link | code',
            resize: true,
            language: 'fr_FR',
            entity_encoding: "raw",
@@ -90,12 +90,12 @@ $canTemplate = $this->isAllowed(DocumenttemplatePrivileges::getResourceId(Docume
        tinymce.init({
            selector: '.corps',
            menubar: false,
            toolbar: 'newdocument undo redo | bold italic underline | numlist bullist table link | alignjustify alignleft alignright aligncenter | formatselect template',
            toolbar: 'newdocument undo redo | bold italic underline | numlist bullist table link | alignjustify alignleft alignright aligncenter | formatselect template | code',
            block_formats: 'Normal=p;Titre 1=h1;Titre 2=h2;Titre 3=h3',
            resize: true,
            language: 'fr_FR',
            entity_encoding: "raw",
            plugins: 'lists template table link',
            plugins: 'lists template table link code',
            templates: macros,
            statusbar: true,
            browser_spellcheck: true,