Skip to main content
Nintex Community Menu Bar
Solved

Disable copy and paste image in richtext

  • July 22, 2022
  • 4 replies
  • 408 views

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

4 replies

Forum|alt.badge.img+8
  • Nintex Employee
  • July 22, 2022

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


ernie_hayter
Forum|alt.badge.img+6
  • Rookie
  • Answer
  • July 22, 2022

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


  • Author
  • Rookie
  • July 26, 2022
Thanks for your feedbacks.

  • Author
  • Rookie
  • July 26, 2022
Thanks you for solution. I will apply it’s.