I have the following code snippet running in a function that is called from a form's onsubmit event:
The getContent() function just returns text that should replace the current content of the CKEditor instance on that page. I've tested this in Chrome and Firefox and it works as expected, but in IE I get the following error:
SCRIPT5007: Unable to get value of the property 'innerHTML': object is null or undefined
ckeditor.js, line 17 character 45
Are there any workaround for this issue?
CKEDITOR.instances.content.setData(getContent());
The getContent() function just returns text that should replace the current content of the CKEditor instance on that page. I've tested this in Chrome and Firefox and it works as expected, but in IE I get the following error:
SCRIPT5007: Unable to get value of the property 'innerHTML': object is null or undefined
ckeditor.js, line 17 character 45
Are there any workaround for this issue?
Re: IE - Unable to get value of the property.. on submit
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: IE - Unable to get value of the property.. on submit
Re: IE - Unable to get value of the property.. on submit
This works for me:
PS. Similar issue doesn't occur on CKEditor 4 beta even with autoUpEl == true.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: IE - Unable to get value of the property.. on submit
Thanks for the fix - that works for the simple example I posted. However, in our application we have the CKEditor surrounded in tabs that are created by a Javascript framework called ExtJS. The submission works as usual when the tab containing the editor is active. When the other tab (which uses a source editor called CodeMirror, which I have left out of the example below) is active, I get the same error on form submission. This error appears to arise from the point that I try to get content from CKEditor and update the underlying textarea manually:
Below is a full example page that contains two tabs which should illustrate the problem. It works in all browsers except IE. CKEditor 4 beta works as expected, so we'll be happy to upgrade to that as soon as it is released, but I was wondering if there was an interim fix available?