I am still using CKEditor 3.2.1 and found an issue with the Attachment plugin on all the IEs. I have fixed it and have attached the patch. The issue was with the behavior of Javascript IE interpreter as compared to other browsers.
I found the following:
1. IE doesn't let you create a variable named "class", if you do that, you'll get an "Expected identifier" error.
solution: change from
2. if you create an array "with an extra comma" like this :
then execute
in the console, on Chrome and Firefox, you'll get 2, but on IE, you'll get 3, the last element will be undefined.
in attachment.js, the value assigned to contents is an array with an extra comma. this attribute is used in ckeditor.js. You will get an error when trying to get attribute from an undefined.
solution: remove the extra comma.
I found the following:
1. IE doesn't let you create a variable named "class", if you do that, you'll get an "Expected identifier" error.
solution: change from
attributes.classto
attributes['class']
2. if you create an array "with an extra comma" like this :
var x = [{a: 'a'}, {b : 'b'}, ]
then execute
x.length
in the console, on Chrome and Firefox, you'll get 2, but on IE, you'll get 3, the last element will be undefined.
in attachment.js, the value assigned to contents is an array with an extra comma. this attribute is used in ckeditor.js. You will get an error when trying to get attribute from an undefined.
solution: remove the extra comma.
Re: Issue with Attachment plugin for version 3.2.1 on IE