inline copy paste JEditorPane HTML
问题 I'm desperatly trying to implement a customized copy/paste in a JTextPane in HTML mode. The most part is working well, I get the html content using EditorKit.write(), I paste it using editorKit.read(). Perfect world. BUT, when I have : <p> test </p> in my editor and I try to copy "es" to obtain <p> tesest </p> , I obtain instead <p>tes</p> <p>es</p> <p>t</p> Knowing that, I m trying to figure out a way to paste "inline" the part supposed to be inline, and in block the part which was in block