-
HTML Editor
Hi!
For an application that I am working on, I need to take formatted user input (user types in a text box) and save it in a file, and display if later. I plan to save it in html format.
This is how I am going around with it - using Java swings -
1. Use a JTextPane and a JScrollPane to show the editor on screen
2. Allow the user to manage the Bold / Underline / font size, etc using a key map.
3. On Save click, I use the getStyledDocument() to retrieve the styled document.
But beyond this, I am lost! How do I convert the StyledDocument to an html file and back?
Do we have an html parser / writer build in? Or do I need to look for some open source code for this? If so, please suggest a good one
Thanks!
-
-
There is a free HTML editor called EKIT for Java. Search on the web, you may find a documentation related to that.
-
-
You are welcome. If you've solved the problem, please mark the thread solved.