fix paste for editor