#2087: Error loadig fckstyles.xml
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Type: Bug
Status: new | Priority: High
Milestone: FCKeditor 2.6.1 | Component: Core : Styles
Version: FCKeditor 2.6 RC | Keywords: fckstyles.xml xml styles
--------------------------------+-------------------------------------------
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.
--
Ticket URL: <http://dev.fckeditor.net/ticket/2087>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac