In article <9l8af2$[EMAIL PROTECTED]>,
"Paul Golz" <[EMAIL PROTECTED]> wrote:
> Yes, OK, maybe I should have been more explicit
>
> I'm trying to create an <editor> type tag. The xul to be edited is kept in a
> html:div. When you want to edit it an iframe is constructed and the div is
> moved into the iframe. The iframe is then hooked up to the editor. When you
> finish editing the content of the iframe is placed back into the main
> document and the editor is closed down (so as not to have several instances
> at any one point). This should allow several editable boxes on the screen at
> one time. However (amongst my other problems) I am having difficulty closing
> down the editor. I'm probably wrong but it seems to only accept a window
> being shut down to close the editor.
Currently, this is true; the <iframe> containing the editor tag has
to be destroyed to release the nsIEditorShell that owns the editor.
This will change when editor embedding work lands.
In the mean time, you could reuse the editor, by clearing out its
contents, and inserting new contents.
Simon
--
Simon Fraser Entomologist
[EMAIL PROTECTED] http://people.netscape.com/sfraser/