If i go to https://prosemirror.net/examples/basic/ and copy the first word on the site(settings) and then paste it into the editor, a space is added after the word. This must be a bug? Or is the editor supposed to work like that?
If i copy the word from the headline no space is added, but when i copy it from the text beneath the space is added.
If i copy the word from the headline or the code part of the page it doesn’t happen, only when i copy a word from the normal text.
Also, if i copy a paragraph and paste it, the created text node’s text property gets two extra spaces at the end which cannot be seen visually in the view.
This problem is related to how Windows handles copy/pasting from the browser and is one of the reasons they offer simple “Paste” (Ctrl+V) and “Paste as Plain Text” (Ctrl+Shift+V)
If you use the second shortcut it works without any issues, pasting with format is problematic even between Microsoft products so asking your users to use the second is not crazy.