|
@ -14,12 +14,13 @@ import 'tinymce/plugins/table' |
|
|
import './langs/pt_BR.js' |
|
|
import './langs/pt_BR.js' |
|
|
|
|
|
|
|
|
window.tinymce = tinymce |
|
|
window.tinymce = tinymce |
|
|
window.initTextRichEditor = function (elements, readonly = false) { |
|
|
window.initTextRichEditor = function (elements, readonly = false, paste_as_text = false) { |
|
|
const configTinymce = { |
|
|
const configTinymce = { |
|
|
selector: elements === null || elements === undefined ? 'textarea' : elements, |
|
|
selector: elements === null || elements === undefined ? 'textarea' : elements, |
|
|
language: 'pt_BR', |
|
|
language: 'pt_BR', |
|
|
branding: false, |
|
|
branding: false, |
|
|
forced_root_block: 'p', |
|
|
forced_root_block: 'p', |
|
|
|
|
|
paste_as_text, |
|
|
plugins: 'table lists advlist link code', |
|
|
plugins: 'table lists advlist link code', |
|
|
toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | 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' |
|
|
menubar: 'file edit view insert format table' |
|
|