diff --git a/frontend/src/__global/js/tinymce/index.js b/frontend/src/__global/js/tinymce/index.js index bfb854396..99f94c14e 100644 --- a/frontend/src/__global/js/tinymce/index.js +++ b/frontend/src/__global/js/tinymce/index.js @@ -14,12 +14,13 @@ import 'tinymce/plugins/table' import './langs/pt_BR.js' window.tinymce = tinymce -window.initTextRichEditor = function (elements, readonly = false) { +window.initTextRichEditor = function (elements, readonly = false, paste_as_text = false) { const configTinymce = { selector: elements === null || elements === undefined ? 'textarea' : elements, language: 'pt_BR', branding: false, forced_root_block: 'p', + paste_as_text, plugins: 'table lists advlist link code', toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link | code', menubar: 'file edit view insert format table' diff --git a/sapl/templates/sessao/expediente.html b/sapl/templates/sessao/expediente.html index c44e3ebe7..5cc4fff62 100644 --- a/sapl/templates/sessao/expediente.html +++ b/sapl/templates/sessao/expediente.html @@ -49,7 +49,7 @@ {% block extra_js %} {% if perms|get_add_perm:view %} {% else %}