I've got a simple XUL app which uses the <editor> tag. It functions quite nicely in Mozilla 1.0 but breaks in Mozilla 1.1. I've stripped it down completely to the following snippet. In Mozilla 1.0, I can edit the page. In Mozilla 1.1, I can't. So what's changed and/or what am I doing wrong?
<?xml version="1.0"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="doInit();" id="editorWindow" > <script type="application/x-javascript"><![CDATA[ function doInit() { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var editorElement = document.getElementById("content-frame"); editorShell = editorElement.editorShell; editorType = 'html'; editorShell.editorType = editorType; editorShell.webShellWindow = window; editorShell.contentWindow = window._content; editorShell.LoadUrl("http://www.google.com"); } ]]></script> <vbox id="appcontent" flex="1"> <deck id="ContentWindowDeck" selectedIndex="0" flex="1"> <stack> <editor type="content-primary" id="content-frame" src="about:blank" context="editorContentContext" flex="1"/> </stack> </deck> </vbox> </window>
