Disable image paste in radeditor

3 posts, 0 answers
  1. Attila
    Attila avatar
    11 posts
    Member since:
    Jan 2013

    Posted 29 Jan 2013 Link to this post

    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. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 29 Jan 2013 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Attila
    Attila avatar
    11 posts
    Member since:
    Jan 2013

    Posted 29 Jan 2013 Link to this post

    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
Back to Top