Hacked together format-preserving cut/copy/paste for RTFEditor