Ticket #673 (closed defect: invalid)

Opened 7 years ago

Last modified 7 years ago

Loading Xinha 2 times neccesary

Reported by: saxy Owned by: akaEdge
Priority: normal Milestone:
Component: Documentation Version:
Severity: normal Keywords:
Cc:

Description

If I load a page with xinha, the editor is shown and also the content. But I can not work with it. Loading the same page a second time, all works fine. Here is the code: <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>

Of course the body tag has the onload event.

Firefox Javascript-console says: Fehler: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://localhost/xinha/htmlarea.js Line: 1288"] Quelldatei: http://localhost/xinha/htmlarea.js Zeile: 1288

With Opera it doesn't work. There are many errors.

IE5 do nothing.

What do I wrong?

Change History

Changed 7 years ago by gogo

  • status changed from new to closed
  • resolution set to invalid
Note: See TracTickets for help on using tickets.