Opened 12 years ago
Last modified 12 years ago
#11353 closed Bug
IE8, Ckeditor.js, Line: 668, Column: 449, Unable to get property 'items' of undefined or null reference — at Version 2
| Reported by: | OHDev | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 4.3.1 |
| Keywords: | Cc: |
Description (last modified by )
This only happens with IE8
SCRIPT5007: Unable to get property 'items' of undefined or null reference File: ckeditor.js, Line: 668, Column: 449
problem is that b.length is 11, while it should be 9 so in the loop at index 10 d is undefined, thus d.items is also undefined.
function h(b) {
var a = [], e, d, h;
for(e = 0; e < '''b.length'''; ++e) {
d = b[e] , h = {
} , "/" == d ? a.push(d) : CKEDITOR.tools.isArray(d) ? (c(h, CKEDITOR.tools.clone(d)) , a.push(h)) : '''d.items''' && (c(h, CKEDITOR.tools.clone(d.items)) , h.name = d.name , a.push(h));
}
return a;
}
I have the following setup in config.js:
config.toolbar = [
{ name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'], items: ['NumberedList', 'BulletedList', '-', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyRight', 'JustifyCenter', 'JustifyLeft', 'JustifyBlock', '-', 'BidiRtl', 'BidiLtr'] },
{ name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
{ name: 'document', groups: ['mode', 'document', 'doctools'], items: ['Save', 'NewPage', 'Preview', 'Print'] },
{ name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
{ name: 'editing', groups: ['find', 'selection'], items: ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'] },
{ name: 'forms', items: ['Checkbox', 'TextField', 'Textarea', 'Select', 'Button'] },
'/',
{ name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
{ name: 'styles', items: ['Font', 'FontSize', 'TextColor', 'BGColor'] },
{ name: 'tools', items: ['Maximize'] }
];
// Toolbar groups configuration.
config.toolbarGroups = [
{ name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
{ name: 'links' },
{ name: 'document', groups: ['mode', 'document', 'doctools'] },
{ name: 'clipboard', groups: ['clipboard', 'undo'] },
{ name: 'editing', groups: ['find', 'selection'] },
{ name: 'forms' },
'/',
{ name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
{ name: 'styles' },
{ name: 'tools' }
];
Change History (3)
Changed 12 years ago by
| Attachment: | bug - locals watch.png added |
|---|
comment:1 Changed 12 years ago by
The website is Developed with ASP.NET DotNetFramework 4.0, hosted on Intranet, IIS 7.5, 32 bit I'm using the ASP.NET ckEditor wrapper.
comment:2 Changed 12 years ago by
| Description: | modified (diff) |
|---|

Printscreen of the locals watch