Opened 11 years ago
Last modified 11 years ago
#12398 closed Bug
Maximize-Button doesn't work in instances without a title — at Version 3
| Reported by: | Tobias Hößl | Owned by: | Artur Delura |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 4.4.5 |
| Component: | General | Version: | 4.4.4 |
| Keywords: | Cc: |
Description (last modified by )
When CKEditor is initialized like this...
CKEDITOR.replace(element, { title: '' });
...the Maximize-Button does produces an javascript-error and fails:
Uncaught TypeError: Cannot read property 'setCustomData' of null ckeditor.js:830 Uncaught TypeError: Cannot read property 'setSize' of null ckeditor.js:321
This can be seen here: https://www.hoessl.eu/ckeditor/samples/divreplace.html This is from the standard package, with only one modification: the ", {title: }" was added.
The reason seams to be that no .cke_voice_label-element is created for the instance when the title is empty, but the maximize-plugin thinks the .cke_inner-element is always the second child of its parent, probably in line 128 of plugins/maximize/plugin.js:
var container = editor.container.getChild( 1 );
First bad commit: e7b3238
Change History (3)
comment:1 Changed 11 years ago by
| Keywords: | Maximize removed |
|---|---|
| Milestone: | → CKEditor 4.4.5 |
| Status: | new → confirmed |
comment:2 Changed 11 years ago by
| Owner: | set to Artur Delura |
|---|---|
| Status: | confirmed → assigned |
comment:3 Changed 11 years ago by
| Description: | modified (diff) |
|---|

Thanks. Confirmed and scheduled for the next minor release.