This is a migrated thread and some comments may be shown as answers.
Disable image paste in radeditor
2 Answers 35 Views
This is a migrated thread and some comments may be shown as answers.
Attila
Top achievements
Rank 1
Attila asked on 29 Jan 2013, 02:06 PM
Hi,

How can I disable the image paste in radeditor?
Also I don't want to allow the drag and drop as well.

Thanks

2 Answers, 1 is accepted

Sort by
0
MasterChiefMasterChef
Top achievements
Rank 2
answered on 29 Jan 2013, 03:15 PM
Hi Attila,

You should be able to control whether or not a user can paste in an image into the RadEditor by editing the OnClientPasteHtml event. You will want to check for the Paste event execution and for the used browser ($telerik.isFirefox), then strip the img tags using regular expression or DOM method from the content returned by the args.get_value() method. After that set the new content via the args.set_value(content) method.

Hope this helps,
Master Chief
0
Attila
Top achievements
Rank 1
answered on 29 Jan 2013, 07:47 PM
Hi Master Chief,

This is too much for me.
Would you be so kind to show me how can I do this?

Thank you in advance,
Attila
Asked by
Attila
Top achievements
Rank 1
Answers by
MasterChiefMasterChef
Top achievements
Rank 2
Attila
Top achievements
Rank 1
Share this question
or