Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Disable paste in HTML editor

$
0
0

Hi

I want to disable cut, copy and paste in HTML editor. For HTML mode I have put this code

 //  For HTML mode$('#<%=editor.ClientID%>').find('textarea').bind("cut copy paste", function (e) {
                e.preventDefault();
            });

and this code works fine. But when I use the same code for design mode it doesn't work (See the code below)

  //  For design mode$('#<%=editor.ClientID%>').find('iframe').bind("cut copy paste", function (e) {
                e.preventDefault();                
            });

 

Is there any other way to do that

 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>