I have problems with my built-in text editor. a simple user has permission to copy paste on a textarea div. no problem with that. but I don't want them to insert html with images and div elements.
I used
valid_elements: "p,br,b,i,strong,em",
Deletes the content style p tags.
for this, but it is not a solution according to my requirements.
and I also tried with paste_postprocess, but did nothing with the latest version of tinymce.
and I also tried many solutions that are already posted in this community. but none of them work for me because I am using the latest version tinymce 4.0.26.
I know that I can prevent copying by disabling the right click. but that would not be a good idea.
Is there a way to filter only p tagwith stylefrom html content?
So, if someone worked on copy pastewith the latest versions tinymce.
Please, help.
source
share