I am using the HTMLEditorKit with the JEditorPane and have both working.
I can do simple things like inserting predefined strings at the current location (using InsertHTMLTextAction).
I can get the selected text with JEditorPane2.getSelectedText().
What I can not seem to do at the moment is get the selected html text.
I want to get the selected text as "Example <b>BOLD</b> text" instead of getting "Example BOLD text".