[EMAIL PROTECTED] wrote: > This question has probalby been asked a lot, but I just can�t get the > editor to work. > I put the EDITOR tag in my XUL file, and it only shows a white box.But I > cant load > something into the editor using the SRC attribute.All other XUL objects > work (like button etc.). > The documentation doesn�t really show how to use the EDITOR.Can someone > help me with this? >
Use the following javascript, it's based on the one from the editor's documentation. It should get everything started. If you want to see something less complicated than mozilla composer, checkout http://mozblog.mozdev.org (Just note that mozblog uses frames[] to get webShellWindow and contentWindow because it want to live with the <browser> on the same window) function editorOnLoad() { editorShell = document.getElementById("edit-frame").editorShell; editorShell.editorType = 'html'; editorShell.webShellWindow = window.window; editorShell.contentWindow = window._content; editorShell.RegisterDocumentStateListener(DocumentStateListener); editorShell.contentsMIMEType = "text/html"; editorShell.LoadUrl("about:blank"); } -- Mike Lee Weblog: http://www.exitspace.net/mike
