rewrote copy/cut/paste in editor