IE8: Error: 'this.$.innerHTML' is null or not an object
setupEditor = function(){
CKEDITOR.replace('blogAdminFormNewPostContent', {
customConfig: 'http://' + document.domain + '/blog/js/ckeditor-config/admin.js',
language : '{-$ckeditor_language-}',
on: {
instanceReady: function(e){
//method (1)
e.editor.setData(bl_editorInitialContent, function(){
this.updateElement();
});
}
}
});
}//setTimeout('CKEDITOR.instances.blogAdminFormNewPostContent.setData(bl_editorInitialContent, function(){this.updateElement();});', 5);
Re: IE8: Error: 'this.$.innerHTML' is null or not an object
onShow: function(){ var htmlElement = this.getContentElement('my_items_window', 'my_items_html_content') .getElement(); htmlElement.setHtml('Loading items, please wait ...');[color=#008000] // Here, no problem even with IE8[/color] var baseUrl = location.href.substring(0, location.href.indexOf('mywebpage/')); $.ajax({ url: baseUrl+'mywebpage/get-items/?fmt=json', dataType: 'json', cache: false, success: function(data){ var html = ''; for (var i in data) { html += '<option value="'+data[i].id+'">'+data[i].name+'</option>'; } [color=#008000]// This line make an exception in IE8[/color] htmlElement.setHtml('<p>Please choose an item to insert :</p>' +'<p><select id="my_items" name="my_items">'+html+'</select></p>'); }, error: function(xhr, status, errorThrown){ htmlElement.setHtml('<p>Loading fail, please try to close and open again this dialog.</p>'); } }); }