Hi, I've created a google checkout plugin in ckeditor (just gives you a graphics interface for adding a product to a page). However I'm having a problem getting it to run in IE7 & 8. CKEditor completely fails to load and I get these errors.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; Tablet PC 2.0)
Timestamp: Thu, 27 Jan 2011 13:42:49 UTC
Message: Expected identifier
Line: 63
Char: 22
Code: 0
URI: https://livedev.enhancetwo.co.uk/ckedit ... ?t=A8LE4JO
Message: 'onLoad' is null or not an object
Line: 22
Char: 1258
Code: 0
URI: https://livedev.enhancetwo.co.uk/ckeditor/ckeditor.js
the relevant code for the first error is below line 63 is - if( attributes.class == 'product' )
ckeditor.js is unmodified
this is running version 3.41 of ckeditor.
afterInit : function( editor ) { editor.dataProcessor.dataFilter.addRules( { elements : { div : function( element ) { if(false) { var attributes = element.attributes; if( attributes.class == 'product' ) { var fakeElement = editor.createFakeParserElement( element, 'cke_checkout', 'div', true ); return fakeElement; } } } } }); }
Re: IE7 & 8 showing error for custom plugin
Found this error while searching for the answer to my error which is the same.
It seems to be a bug with CKEditor in those browsers Or the Browsers themselves (i only tested in IE6 myself).
It can be worked around though.
JS objects can also be used like hashes.
So:
and
Work the same, and wont produce any errors in IE6
Cheers
Richie
Re: IE7 & 8 showing error for custom plugin
I am not sure this will help but there is already IE9. Try to update your IE and I guess it might help.
marc
Re: IE7 & 8 showing error for custom plugin
Re: IE7 & 8 showing error for custom plugin
Everyone can do that as long as they want to...was your problem solved?
Re: IE7 & 8 showing error for custom plugin
This is going off topic but...
Imagine a company with 3000 staff. All their activity is web based. Using their own custom cms that they have had for 6 years, they use IE6. They know it works with IE6, they dont want to upgrade 3000 computers.
You have work to do for them...
Re: IE7 & 8 showing error for custom plugin
Imagine such a company.
All their core business relies on a browser that was released 10 years ago, their custom CMS hasn't been updated since the release of the updated version of that browser in October 2006 (less than 5 years ago).
Their CMS also doesn't support other OS and browsers.
What are they doing when a computer crashes and a replacement is added?
For how long do they expect that to work?
Hasn't everyone already run away from a company that it's ready to sink?