|
From: Jason D. <jde...@ea...> - 2002-02-23 21:18:54
|
I've taken a look at the HTMLEditorKit. It seems like a lot of work to get it to do what we need it to do. First we need to extend the HTMLEditorKit.ParserCallback to read in the HTML tree and allow for the <script> tags. The contents btween the script tag needs to be sent to a javascript interpreter (Rhino or mabye our own interpreter that will send back just the layer info that needs to be displayed). We also need to save an original copy of the HTML tree so that only new nodes and leafs are added to the text output. This could be done by searching throught the input text finding the proper nesting location and outputing the text via a new HTMLWriter. Let me know if this sounds right. I think the first task would be making the javascript interpreter work. Jason |