0

Is it possible and if yes then how to implement undo,redo,copy,paste and cut with jQuery on textarea for example.

I did checked jQuery undo plugin but it didn't work that well also i tried to implement keypress by myself using jQuery extensions methods. Created keypress event and assigned value to it. Still didn't work.

Thanks

eugeneK
  • 10,750
  • 19
  • 66
  • 101
  • http://stackoverflow.com/questions/1539641/copy-text-to-the-clients-clipboard-using-jquery http://stackoverflow.com/questions/3475293/copy-and-paste-clipboard-in-javascript-or-jquery – mplungjan Jun 06 '11 at 06:34
  • What are you actually trying to do? – Tim Down Jun 06 '11 at 08:42
  • @Tim Down, i have some buttons on which user can click and undo/redo copy/paste/cut ... So all of the answers here don't even match what i've asked. Seems i cannot provide this functionally without heavy usage of Flash hacks. – eugeneK Jun 06 '11 at 09:25
  • 1
    You're right. There's no way of getting and setting content on the system clipboard in JavaScript that works in all browsers and security settings, which is a good thing from a security perspective. – Tim Down Jun 06 '11 at 09:28
  • @Tim Down, **feature removed** – eugeneK Jun 06 '11 at 12:47
  • @TimDown, what about undo/redo? How can I achieve this in jquery/javascript. – Imran Qadir Baksh - Baloch Aug 17 '12 at 15:35