fix plain text paste to editor.Fixes #387