Log in or register to post comments
Last post
Issue with Attachment plugin for version 3.2.1 on IE
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
attributes.class
to
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.

Attachments: 

Re: Issue with Attachment plugin for version 3.2.1 on IE
Thanks for this. I took over a project using an older version of CKEditor and they were having this attachment issue. Your fix worked for me. +1