Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track changes not working for CUT and PASTE #127

Open
patrickDucastel opened this issue Mar 17, 2016 · 1 comment
Open

Track changes not working for CUT and PASTE #127

patrickDucastel opened this issue Mar 17, 2016 · 1 comment

Comments

@patrickDucastel
Copy link

Hi
I try to use tinymce for track changing on my textarea.
When I press keys for adding text, the new text is highlighted, fine...
But if I use PASTE for adding text, the new text appears without any track.
The same for delete : if I use the DELETE key, the old text is still there highlighted and throughlined.
But if I use CUT, the text disappears without any track.
I have tried to prohibit CUT and PASTE by using the code :
$(document).ready(function () {
$(idtextarea).bind('cut paste', function (e) {
e.preventDefault();
alert('NO cut paste');
});
});

But then track changes does not work anymore!!!
So I have 2 questions :
Is it possible to make track changes working for cut and paste
If yes, how. If no, is it possible to prohibit cut and paste on textarea.
If yes, how. If no, it is not smart....
Thanks for your help

@catsgotmytongue
Copy link

I had exactly the same problem. I tried to fix this when I was working on
this over a year ago but I never fixed it.
On Mar 17, 2016 1:26 AM, "patrickDucastel" [email protected] wrote:

Hi
I try to use tinymce for track changing on my textarea.
When I press keys for adding text, the new text is highlighted, fine...
But if I use PASTE for adding text, the new text appears without any track.
The same for delete : if I use the DELETE key, the old text is still there
highlighted and throughlined.
But if I use CUT, the text disappears without any track.
I have tried to prohibit CUT and PASTE by using the code :
$(document).ready(function () {
$(idtextarea).bind('cut paste', function (e) {
e.preventDefault();
alert('NO cut paste');
});
});

But then track changes does not work anymore!!!
So I have 2 questions :
Is it possible to make track changes working for cut and paste
If yes, how. If no, is it possible to prohibit cut and paste on textarea.
If yes, how. If no, it is not smart....
Thanks for your help


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants