Is it possible to use the editor shell in files that are not registered
in the chrome?
XUL
<editor id="content-frame" class="editfield" type="content-primary"
src="about:blank" flex="1"/>
JS
EditorStartup('text', 'content-frame');
function EditorStartup(editorType, editorElement){
editorElement = document.getElementById( editorElement );
editorShell = editorElement.editorShell;
// Does not get this far
editorShell.editorType = editorType;
editorShell.webShellWindow = window;
editorShell.contentWindow = window._content;
editorShell.LoadUrl("plainText.htm");
}
When this tries to set the editorShell element, there is this error:
JavaScript error:
line 0: uncaught exception: Permission denied to create wrapper for
object
- Brian