need to disable the Paste ability

閲覧: 25 回
最初の未読メッセージにスキップ

KenHanks

未読、
2018/11/11 13:21:032018/11/11
To: cleditor
I need to disable the Paste ability. I've been able to disable the buttons by removing their definitions from the js files. I also have this jquery command:

     $doc.on("paste",function(e) {
        e.preventDefault();
        return false;  
    });

And this one:
    $('#my_text_area).on('paste',function(e) {
        e.preventDefault();
        return false;  
    });


Neither of these prevent the "CTRL-V" or right-click ability to paste.
Does anyone have any ideas on how I can prevent my clients from pasting into a CLEditor textearea? Thanks!

KenHanks

未読、
2018/11/11 13:25:152018/11/11
To: cleditor
Oh, by the way, I'm using jquery 3.2.1, so the "bind" command won't work -- it's been deprecated in favor of "on".
全員に返信
投稿者に返信
転送
新着メール 0 件