Opened 11 years ago
Last modified 11 years ago
#12398 closed Bug
Maximize-Button doesn't work in instances without a title — at Initial Version
| Reported by: | Tobias Hößl | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 4.4.5 |
| Component: | General | Version: | 4.4.4 |
| Keywords: | Cc: |
Description
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 );
