TinyMCE paste as text
# help-with-umbraco
a
We recently upgraded our umbraco version from v8 to v13.4. Upon doing so our TinyMCE rich text editor has started retaining styles & classes when pasting from word/indesign or other file formats. Is there a way to stop TinyMCE from retaining the styles when pasting from somewhere else? I have tried the following inside the appsettings, but nothing has worked:
Copy code
"Umbraco": {
  "CMS": {
    "RichTextEditor": {
       "Default":{
          "paste_remove_styles_if_webkit": true,
          "paste_remove_spans": true,
          "paste_as_text": true
        },
      "InvalidElements": "font",
      "InvalidStyles": "font font-size color background line-height text-indent font-family ",
      ],
       "InvalidStyles": "font font-size color background line-height text-indent font-family ",
       "PasteAsText": true,
        "CustomConfig": {
          "paste_as_text": "true"
        }
    }
  }
}
23 Views