From f2466ffa773527758a470676476e8d30b6d4a0b2 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Thu, 27 May 2021 18:09:01 +0430 Subject: [PATCH] make tinymce remove pasted text formatting --- GanjooRazor/Pages/Index.cshtml | 12 +++++++++++- GanjooRazor/appsettings.json | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/GanjooRazor/Pages/Index.cshtml b/GanjooRazor/Pages/Index.cshtml index 5ce169dc..d253aaa1 100644 --- a/GanjooRazor/Pages/Index.cshtml +++ b/GanjooRazor/Pages/Index.cshtml @@ -113,7 +113,17 @@ + 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, + }); +