|
From: Creighton K. <cki...@ho...> - 2002-02-25 13:26:07
|
I am working on all of this. I have spent a great deal of time looking through the suns implementation of the Parser and the HTMLReader and the HTMLEditorKit. There is a lot of work to do most of it has to do with completely re-implementing the parser so that data is not lost and code can be regenerated with out looking totally different(this is what I am currently doing). Next we will have to modify the reader, the editor kit, and the HTMLWriter to adjust for changes in the parser. This will only be a mild rewrite of them. We can use the views that have been provided by sun however we will have to introduce a layer view that handles absolute positioning or modify the block view. As far as getting the script a sending it into the interpreter is actually trivial after you rewrite the parser. Finally we will have to modify the EditorPane to handle the new view with editing function. Long term we will have to re-implement the EditorPane completely to make an easy editable interface. Right now what I am working on will take some time however I do not want work to stop on the base system. Jason can you work on implementing control keys for all functionally currently in the system like ^C(copy) and put together a better tool bar. Also we need to be able to insert html into the design editor and the base editor. We need to have a drop down menu called insert this will have things like new table that will have to load a dialog menu and ask for the properties like number of columns, rows and border. I have work out this a little and for the design pane get the Editorkit and ask for the document and insert text where the cursor position is. We can also implement this as a draggable tool bar. Creighton -----Original Message----- From: Jason DeWeese [mailto:jde...@ea...] Sent: Saturday, February 23, 2002 4:29 PM To: dyn...@li... Subject: [Dynapyide-developer] Extending the HTMLEditorKit 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 _______________________________________________ Dynapyide-developer mailing list Dyn...@li... https://lists.sourceforge.net/lists/listinfo/dynapyide-developer |