Ticket #2087 (closed Bug: duplicate)

Opened 8 months ago

Last modified 8 months ago

Error loadig fckstyles.xml

Reported by: mcleod@… Owned by:
Priority: High 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

Changed 8 months ago by mcleod@…

Sorry I set the priority and the milestone. Please change these.

Changed 8 months ago by martinkou

  • keywords fckstyles.xml xml styles removed
  • status changed from new to closed
  • resolution set to duplicate
  • milestone deleted

This is a dup of #1426.

Note: See TracTickets for help on using tickets.