| Author |
Maintaining paragraph in HTMLEditorKit
|
Mathias Nilsson
Ranch Hand
Joined: Aug 21, 2004
Posts: 367
|
|
Hi! I use a JTextPane, HTMLEditorKit to let the user do bold, italic and so forth. sometimes when the user saves the document the <p></p> is missing? Normally when you make a new document from the editor kit you get <html><body><p></p></body></html> but sometimes the <p></p> tag is missing. Is there any way to get this to work in 100%? // MAthias
|
SCJP1.4
|
 |
Craig Wood
Ranch Hand
Joined: Jan 14, 2004
Posts: 1535
|
|
|
Make sure you are not replacing the logical style when modifying a paragraph style. Retaining the Logical Style When Setting a New Paragraph Style
|
 |
Mathias Nilsson
Ranch Hand
Joined: Aug 21, 2004
Posts: 367
|
|
Thanks but it doesn't work! Here's my problem. When I create a new document the <p> tag is missing. If a begin typing a <p> tag creates. If I delete all the text by pressing backspace the <p> tag get removed when the last letter is gone?! Please help
|
 |
 |
|
|
subject: Maintaining paragraph in HTMLEditorKit
|
|
|