Opened 10 years ago

Last modified 10 years ago

#11353 closed Bug

IE8, Ckeditor.js, Line: 668, Column: 449, Unable to get property 'items' of undefined or null reference — at Initial Version

Reported by: OHDev Owned by:
Priority: Normal Milestone:
Component: General Version: 4.3.1
Keywords: Cc:

Description

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 (1)

Changed 10 years ago by OHDev

Attachment: bug - locals watch.png added

Printscreen of the locals watch

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy