Opened 14 years ago

Closed 14 years ago

#674 closed defect (invalid)

xinha must be loaded 2 times

Reported by: saxy Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version:
Severity: normal Keywords:
Cc:

Description

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?

Change History (1)

comment:1 Changed 14 years ago by gogo

  • Resolution set to invalid
  • Status changed from new to closed

Ask at the forums not here at the bug tracker. Make sure you have followed the newbie guide.

Note: See TracTickets for help on using tickets.