EmEditor (text editor) Forum Index EmEditor Core Enhancement Suggestions
Simultaneous paste and cut | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| parameter | Posted on: 3/5/2012 12:20 pm |
Not too shy to talk ![]() ![]() Joined: 3/5/2012 From: Posts: 30 |
Simultaneous paste and cut I'd like an Edit option to Paste while Copying the what I have selected - i.e. swap what I have selected and what is in the clipboard. Maybe call it "Swap" or "Paste/Cut".
|
| Yutaka | Posted on: 3/6/2012 9:03 am |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2398 |
Re: Simultaneous paste and cut Hi parameter,
You can write a macro for this purpose easily. Please let me know if you need a help writing a macro. Thank you!
|
| parameter | Posted on: 3/6/2012 12:25 pm |
Not too shy to talk ![]() ![]() Joined: 3/5/2012 From: Posts: 30 |
Re: Simultaneous paste and cut Thanks, this seems to work.
var cut=document.selection.Text; var paste = clipboardData.getData("Text"); clipboardData.setData("Text", cut); document.selection.Text=paste; |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |




