editor: handle copy/cut/paste