'Anchor eliminates formatting in the TinyMCE

i have a page in mvc where a document is compiled thanks to a tinyMCE, the problem is when I copy a text from word, this seems to be correct initially, but if I change something inside the tiny and click on undo or use the quick commands to roll back (CTRL + Z) the page loses its original alignment.

this is how it looks right after pasting:

this is how it looks after clicking undo

as you can see the problem is the strings in anchor, I tried to remove it from here:

 plugins: 'style layer formatselect fontselect fontsizeselect fontbold link unlink a11ychecker advcode casechange formatpainter linkchecker autolink lists checklist image media mediaembed pageembed permanentpen powerpaste linkchecker table advtable tinycomments tinymcespellchecker',
        toolbar: 'style layer formatselect fontselect fontsizeselect bold italic underline strikethrough | link bullist numlist checklist image media | table | outdent indent | forecolor backcolor unlink casechange linkchecker formatpainter pageembed permanentpen a11ycheck code', //addcomment showcomments blockquote cut copy paste pastetext pasteword
        toolbar: 'undo redo | styleselect | bold italic underline strikethrough | bullist numlist checklist | link unlink  | code | forecolor backcolor casechange fontsizeselect | outdent indent | table | pageembed',

but the result doesn't change, how can I fix or completely remove the anchors?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source