Algemeen en interessant nieuws over en door NosTech

NIEUWS

Spaw editor no longer working on IE9 It seems that...
06-10-2011 01:17

Spaw editor no longer working on IE9
It seems that the spaw editor is no longer working on Internet Explorer 9, the editor field remains grayed out.
The problem is related to a small JS issue. If you use the compatibility button in IE9 it fixes the issue, but of course you have to click it.
If you’re looking for a code solution, I didn’t find it anywhere on the net, so I’ve written a fix myself. In the file js/ie/editor.js you should replace the following code:

// returns reference to editors page iframe
SpawEditor.prototype.getPageIframe = function(page_name) {
  return this.document.frames(page_name + ’_rEdit’);
}
by this one:

// returns reference to editors page iframe
SpawEditor.prototype.getPageIframe = function(page_name) {
 if (document.frames) {return this.document.frames[page_name + ’_rEdit’];}
 else {return this.document.getElementById(page_name +’_rEdit’).contentWindow;}
}

< Alle nieuws