Opened 11 years ago

Last modified 11 years ago

#10541 confirmed Bug

Maximising removes styling of wrapping div

Reported by: Tony Christopher Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:

Description

When maximising CKEditor it appears to replace styling in place around a wrapping container, rather than appending to it.

To replicate the bug:

*Create a div with css display set to none, and place an instance of CKEditor inside this div. *Use jQuery to show the div on page load. *Click the maximise button

The display: block set by the jQuery will have been replaced. If you manually add this back in by editing the HTML with a console, minimising the window will leave the display: block in.

Modified sample file replacebyclass.html with an example of this bug is attached.

Attachments (1)

replacebyclass.html (7.0 KB) - added by Tony Christopher 11 years ago.
Example file showing bug in action.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by Tony Christopher

Attachment: replacebyclass.html added

Example file showing bug in action.

comment:1 Changed 11 years ago by Jakub Ś

Status: newconfirmed
Version: 4.1.23.0

Problem can be reproduced from CKEditor 3.0 in both CKE 4.x and 3.x.

The same thing happens when you use

document.getElementById('starthidden').style.display='block';

It seems when pressing maximize editor adds position: static; z-index: 9995; width: 0px; height: 0px; all the way up (to div, form body and html).

comment:2 Changed 11 years ago by Tony Christopher

As a note to anyone who is subject to this bug, a work around is to not use CSS to hide the div, but JavaScript to hide it on page load if needed.

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