Opened 6 years ago

Last modified 6 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@…

Description

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 6 years ago by Jakub Ś

Status: newconfirmed
Version: 4.2.24.0 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 )
	return;
Last edited 6 years ago by Jakub Ś (previous) (diff)
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy