Hi!
For my installation of CKEditor (3.1) I generate my own ckeditor.js file. Normally I delete some plugins I don't need, but also add some new. One of them is the Aspell-Plugin provided by Christian Boisjoli, who has ported it from FCKEditor 2.x to CKEditor 3.x.
But after I have created my own ckeditor.js with CKPackager the Editor throws an error in (at least) IE8. It works fine in Firefox. After some debugging, I found out, that for some reason the code in the compressed ckeditor.js differs from the original not-compressed code. (It happens in the aspell plugin code, that's why I mentioned the plugin).
The following code:
is compressed to:
As you can see, the delete statement is wrong in the compressed version (must be "delete m;" not "delete m.aspellCSS;") and IE throws an error message because of that (Object doesn't support this action).
Does anybody know how the CKPackager works or how to fix this? (Or isn't that CKPackager related and I'm doing something completely wrong?)
For now, I changed the compressed file, but I don't like this solution, because now I have to change it everytime I generate a new ckeditor.js (e.g. with a new version of CKEditor).
Some ideas how to solve this (probably in CKPackager)?
Kind regards,
Marc
For my installation of CKEditor (3.1) I generate my own ckeditor.js file. Normally I delete some plugins I don't need, but also add some new. One of them is the Aspell-Plugin provided by Christian Boisjoli, who has ported it from FCKEditor 2.x to CKEditor 3.x.
But after I have created my own ckeditor.js with CKPackager the Editor throws an error in (at least) IE8. It works fine in Firefox. After some debugging, I found out, that for some reason the code in the compressed ckeditor.js differs from the original not-compressed code. (It happens in the aspell plugin code, that's why I mentioned the plugin).
The following code:
// Add CSS var aspellCSS = document.createElement('link'); aspellCSS.setAttribute( 'rel', 'stylesheet'); aspellCSS.setAttribute('type', 'text/css'); aspellCSS.setAttribute('href', this.path+'aspell.css'); document.getElementsByTagName("head")[0].appendChild(aspellCSS); delete aspellCSS;
is compressed to:
var m=document.createElement('link');m.setAttribute('rel','stylesheet');m.setAttribute('type','text/css');m.setAttribute('href',this.path+'aspell.css');document.getElementsByTagName('head')[0].appendChild(m); delete m.aspellCSS;
As you can see, the delete statement is wrong in the compressed version (must be "delete m;" not "delete m.aspellCSS;") and IE throws an error message because of that (Object doesn't support this action).
Does anybody know how the CKPackager works or how to fix this? (Or isn't that CKPackager related and I'm doing something completely wrong?)
For now, I changed the compressed file, but I don't like this solution, because now I have to change it everytime I generate a new ckeditor.js (e.g. with a new version of CKEditor).
Some ideas how to solve this (probably in CKPackager)?
Kind regards,
Marc