How to prevent copying styles and drag 'n drop in Summernote?

Asked

Viewed 40 times

0

When I copy something into Summernote, everything that was at the origin of the copy (images, styles, etc.) goes. Is there any way to stop it?

  • Have you checked to see if this editor has any events you can process paste or configuration for what type of paste or content allows?

  • The stop I found, but the drag and drop did not. I was able to find a script that passes removes the styles of the text from the Clipboard and pastes as Plain text, but when I drag and drop, it does both. Pastes raw text and text with styles.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.