Opened 11 years ago

Closed 11 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

Change History (1)

comment:1 Changed 11 years ago by Piotrek Koszuliński

Resolution: invalid
Status: newclosed

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.

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