I would like so if it's possible in the Tinymce editor to disable the color with the copy past from Word for example.
Thanks for the help.
I would like so if it's possible in the Tinymce editor to disable the color with the copy past from Word for example.
Thanks for the help.
If you
console.logvalue inonEditorChangeevent of editor after pasting the text, you can seestyle="color: red;"is added in the pasted text.In
onEditorChangeyou can use regex to removecolorproperty from style, and then set the edited value.Check this example
Note: The code is according to tinymce react component. You may need to change some code if you are not using tinymce for react