id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
674	xinha must be loaded 2 times	saxy	gogo	"In Firefox if I load xinha the first time I can see the editor and if available the content, but I can not work with it. Loading the same page the second time, all works fine.
Here is the code for loading xinha (copied from the examples):
<script type=""text/javascript"">
  _editor_url = ""/xinha/"";
  _editor_lang = ""de"";
</script>
<script type=""text/javascript"" src=""/xinha/htmlarea.js""></script>
<script type=""text/javascript"">
  HTMLArea.loadPlugin(""TableOperations"");
//  HTMLArea.loadPlugin(""SpellChecker"");
  HTMLArea.loadPlugin(""CSS"");

  function initDocument() {
    // cache these values as we need to pass it for both editors
    var css_plugin_args = {
      combos : [
        { label: ""Syntax"",
                     // menu text       // CSS class
          options: { ""None""           : """",
                     ""Code"" : ""code"",
                     ""String"" : ""string"",
                     ""Comment"" : ""comment"",
                     ""Variable name"" : ""variable-name"",
                     ""Type"" : ""type"",
                     ""Reference"" : ""reference"",
                     ""Preprocessor"" : ""preprocessor"",
                     ""Keyword"" : ""keyword"",
                     ""Function name"" : ""function-name"",
                     ""Html tag"" : ""html-tag"",
                     ""Html italic"" : ""html-helper-italic"",
                     ""Warning"" : ""warning"",
                     ""Html bold"" : ""html-helper-bold""
                   },
          context: ""pre""
        },
        { label: ""Info"",
          options: { ""None""           : """",
                     ""Quote""          : ""quote"",
                     ""Highlight""      : ""highlight"",
                     ""Deprecated""     : ""deprecated""
                   }
        }
      ]
    };
    var editor1 = new HTMLArea(""text-area-1"");
    editor1.registerPlugin(TableOperations);
//    editor1.registerPlugin(SpellChecker);
    editor1.registerPlugin(CSS, css_plugin_args);
    editor1.config.pageStyle = ""@import url(/xinha/custom.css);"";

    editor1.generate();
    //---------------------------------------------------------------------


  };
</script>

The Javascrip console tells:
Fehler: [Exception... ""Access to restricted URI denied""  code: ""1012"" nsresult: ""0x805303f4 (NS_ERROR_DOM_BAD_URI)""  location: ""http://www.buerostudio-neumann.at/xinha/htmlarea.js Line: 1288""]
Quelldatei: http://www.buerostudio-neumann.at/xinha/htmlarea.js
Zeile: 1288

In Opera there are many errors. So it doesn't work.
In IE5 and Konqueror there is no editor.

What do I wrong?"	defect	closed	normal		Xinha Core		normal	invalid		
