Skip to main content
Nintex Community Menu Bar
Solved

Disable copy and paste image in richtext

  • Jul 22, 2022 6:37 AM UTC
  • 4 replies
  • 453 views
  • Translate All

Forum|alt.badge.img+2

Is possible to disable paste image into Rich Text editor?

Best answer by ernie_hayter

Hey @SumitSu,

 

Even though you cannot block pasting images, you should be able to implement validation on your Next/Save/Submit button to check if an image was pasted in the RTE by checking if the control contains "<img". And then you can throw an error saying you are not allowed to have an image in your text.

 

You can use this same logic for any other unwanted rich text element.

 

HTH,

Ernie

View original

4 replies

Forum|alt.badge.img+8
  • Nintex Employee
  • Jul 22, 2022 9:06 AM UTC

Currently, it is not possible to disallow pasting images into the Rich Text Control specifically. You may wish to submit a feature request for this on our Nintex Product Feedback site and make sure to upvote it:  https://nintex.uservoice.com/forums/932677-k2-five

Translate

ernie_hayter
Nintex Partner
Forum|alt.badge.img+6
  • Nintex Partner
  • Answer
  • Jul 22, 2022 9:28 AM UTC

Hey @SumitSu,

 

Even though you cannot block pasting images, you should be able to implement validation on your Next/Save/Submit button to check if an image was pasted in the RTE by checking if the control contains "<img". And then you can throw an error saying you are not allowed to have an image in your text.

 

You can use this same logic for any other unwanted rich text element.

 

HTH,

Ernie

Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • Jul 26, 2022 11:52 AM UTC
Thanks for your feedbacks.
Translate

Forum|alt.badge.img+2
  • Author
  • Rookie
  • Jul 26, 2022 11:53 AM UTC
Thanks you for solution. I will apply it’s.
Translate