refactor editor clipboard