[EMAIL PROTECTED] wrote: > Thanks for your reply, but it still doesnīt work.I can load a file using > the src attribute in the tag, but I canīt change it trough the > javascript.And the page is displayed like an IFrame.Shouldnīt the Editor > allow the user to do something with the document?
Well to do anything useful with the editor you really need to make use of xpcom. I currently use nsIeditorShell [1] which I believe is depreciated. For example to change the url, you call. editorShell.LoadUrl(something); editor doesn't come with the 'icons' automatically to format the document. You have to add them yourself or use the code from composer. Once you call the javascript I outlined in the last message the editor should be editable, that is you can type stuff in it. editor is really no different to iframe or browser, it's just an iframe which you make editable. Pretty powerful concept if you ask me :) > I have DHTML/XML experience, but I have never used XUL before.So itīs > pretty confusing, especially since I cant get it to work.Can you please > show me a simple example of how to use the Editor? > Thanks in advance. Download the test case for bug 129869 [2], it's got some redudant stuff for showing the bug, but it should give you a working editor. If you want the formating bar, better look at a more complete example like mozilla composer instead. [1] http://lxr.mozilla.org/seamonkey/source/editor/idl/nsIEditorShell.idl [2] http://bugzilla.mozilla.org/show_bug.cgi?id=129869 -- Mike Lee Weblog: http://www.exitspace.net/mike