I'm creating a Pycharm Plugin with a simple JTextPane (plain text). If I paste (CTRL+V) a multi-line text into it, it always pastes it into a single line replacing any type of EOL to spaces. Also the keys HOME or END jump to the start or the end of the document, not start/end of a current line. Is there a way to set some property that this behavior changes?
If I use the JTextPane outside the intellij framework, everything works as expected. Do I need to change something in the EditorKit properties?