Opened 17 years ago
Closed 17 years ago
#2087 closed Bug (duplicate)
Error loadig fckstyles.xml
Reported by: | Bart McLeod | Owned by: | |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | |
Component: | Core : Styles | Version: | FCKeditor 2.6 RC |
Keywords: | Cc: |
Description
If I download the nightly build or any other 2.6rc version so far, I will get an error stating fckstyles.xml could not be loaded and if I would like to see the response details.
The response detail shows the contents of fckstyles.xml in good condition. It has a status of 200.
I know that this bug has been reported earlier by someone else, and that you did not look into it further, because it is working ok for you. For others, however, it is definitely NOT ok.
What I did as a solution is open internals/classes/fckxml_ie.js (the error applies to the gecko version as well!). I swapped the conditions that check for the status.
//the if conditions below are swapped compared to your version if ( oXmlHttp.status == 0 && oXmlHttp.readyState == 4 ) this.DOMDocument = oXmlHttp.responseXML ; else if ( oXmlHttp.status == 200 || oXmlHttp.status == 304 ) { this.DOMDocument = FCKTools.CreateXmlObject( 'DOMDocument' ) ; this.DOMDocument.async = false ; this.DOMDocument.resolveExternals = false ; this.DOMDocument.loadXML( oXmlHttp.responseText ) ; }
I do not know if the swapping is ok, I suspect not. But it works.
Change History (2)
comment:1 Changed 17 years ago by
comment:2 Changed 17 years ago by
Keywords: | fckstyles.xml xml styles removed |
---|---|
Milestone: | FCKeditor 2.6.1 |
Resolution: | → duplicate |
Status: | new → closed |
This is a dup of #1426.
Sorry I set the priority and the milestone. Please change these.