Opened 11 years ago

Last modified 11 years ago

#10999 confirmed Bug

Resize an inline editor

Reported by: Stig Runar Vangen Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0 Beta
Keywords: Cc: stig@…


If you convert an editable div to a CkEditor using the inline function, a call to the resize-method of the created instance will give an error.

This can be confirmed by adding the following line to the bottom of the inlinebycode.html sample:

  <button onClick="editor.resize(100,100)">Test resize</button>

The contents variable will never be set within the resize method.

Change History (1)

comment:1 Changed 11 years ago by Jakub Ś

Status: newconfirmed
Version: Beta

This should not work in inline editor but there should not be any JS error thrown thus I'm confirming this ticket.

JS error is thrown from CKEditor 4.0 beta.

Correct behaviour - nothing should happen. Resize plugin is probably missing below "if" statement in init method:

if ( editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE )
Last edited 11 years ago by Jakub Ś (previous) (diff)
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