Opened 13 years ago
Closed 13 years ago
#10237 closed Bug (invalid)
editor.resize error
| Reported by: | tboeker | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 4.0.2 |
| Keywords: | editor resize | Cc: |
Description
Using ckeditor 4.0.2
var oEditor = CKEDITOR.replace('editor1', {
disableNativeSpellChecker: false, removePlugins: 'elementspath', resize_enabled: false
}); oEditor.resize(500, 200, true);
Generates error message: e is undefined

You cannot resize editor before it is initialize. But you can pass height and width in editor's config:
var oEditor = CKEDITOR.replace('editor1', { disableNativeSpellChecker: false, removePlugins: 'elementspath', resize_enabled: false, width: 500, height: 200 });But if you really need the "isContentHeight" arg to be equal to true, then wait on instanceReady event.