make tinymce remove pasted text formatting

This commit is contained in:
Hamid Reza Mohammadi 2021-05-27 18:09:01 +04:30
parent 48b1817f21
commit f2466ffa77
2 changed files with 13 additions and 3 deletions

View File

@ -113,7 +113,17 @@
<script src="/lib/tinymce/tinymce.min.js"></script>
<script>tinymce.init({
selector: 'textarea.editor', language: 'fa_IR', menubar: false, plugins: 'link', toolbar: 'undo redo | alignleft aligncenter alignright alignjustify | outdent indent | link' });</script>
selector: 'textarea.editor',
language: 'fa_IR',
menubar: false,
plugins: 'link paste',
toolbar: 'undo redo | alignleft aligncenter alignright alignjustify | outdent indent | link',
paste_auto_cleanup_on_paste: true,
paste_remove_styles: true,
paste_remove_styles_if_webkit: true,
paste_strip_class_attributes: true,
});
</script>
<script>
function wpopen(macagna) {
window.open(macagna, '_blank', 'width=600,height=700,scrollbars=yes,status=yes');

View File

@ -8,6 +8,6 @@
},
"AllowedHosts": "*",
"GoogleAnalyticsCode": "",
"APIRoot": "http://localhost:3439",
"GlobalAPIRoot": "http://localhost:3439"
"APIRoot": "https://ganjgah.ir",
"GlobalAPIRoot": "https://ganjgah.ir"
}