Closed themanyone closed 4 years ago
Fix/patch: I removed "new" from line 415 in ckeditor/samples/toolbarconfigurator/index.html Seems to have fixed all errors and it works.
I confirm the error is present, also when using our CDN. It's a regression introduced in 4.11.0
.
So, it looks like the API has been incorrectly used and CKEDITOR.tools.eventsBuffer
in > 4.11.0 shouldn't be initialized, as it's not a class, but a method. It worked due to JS mechanism but was not intended to be initialized with new
keyword. That means it's not a regression requiring some core changes, but simple samples issue.
Refactoring into this method in 4.11.0 revealed samples bug.
Type of report
Bugfix patch
Provide detailed reproduction steps (if any)
Expected result
no eeeeror
Actual result
tools.js:1236 Uncaught TypeError: Cannot read property 'event' of undefined at new eventsBuffer (tools.js:1236) at index.html:415 at index.html:444 eventsBuffer @ tools.js:1236 (anonymous) @ index.html:415 (anonymous) @ index.html:444
Other details
Fix/patch: I removed "new" from line 415 in ckeditor/samples/toolbarconfigurator/index.html Seems to have fixed all errors and it works.