In article <[EMAIL PROTECTED]>,
 Brian King <[EMAIL PROTECTED]> wrote:

> 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

No, it's not possible. nsEditorShell does not implement the appropriate
security-related interfaces to allow it to be used outside of XUL.

Simon

-- 
          Simon Fraser   Entomologist
  [EMAIL PROTECTED]   http://people.netscape.com/sfraser/

Reply via email to