Opened 10 years ago

Closed 10 years ago

#11487 closed Bug (fixed)

Mousing-over an image when using the enhanced image plugin results in the dirty flag being set

Reported by: evant Owned by: Marek Lewandowski
Priority: Normal Milestone: CKEditor 4.3.3
Component: UI : Widgets Version: 4.3.2
Keywords: Cc:

Description

I have a site that utilises CKEditor 4.3.2 in an inline configuration. I use the checkDirty() function to check whether the editor contents have changed whenever a user tries to navigate to another page within the site, and prompt them to save if the contents have changed. This functionality worked perfectly until I replaced the original image plugin with the new widget-based enhanced image plugin.

As soon as I did this, every time I mouse-over an image, the dirty flag becomes set, even if the editor toolbar is not actually instantiated. Essentially, all you have to do to trigger this behaviour is mouse-over an image when using the enhanced image plugin, and the editor seems to think that the contents have changed. If I avoid mousing over images, the issue does not occur.

I can reproduce the problem using Firefox 26, Chrome 32.0.1700.76 and Internet Explorer 11.

In all other respects, the enhanced image plugin seems to function fine.

Attachments (1)

build-config.js (1.4 KB) - added by evant 10 years ago.
Build Config

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by evant

Attachment: build-config.js added

Build Config

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

Milestone: CKEditor 4.3.3
Status: newconfirmed

Fix for this issue will have to look similarly to https://github.com/ckeditor/ckeditor-dev/blob/master/core/editable.js#L1041-L1049. We could also think about integrating checkDirty lock with snapshots locking.

comment:2 Changed 10 years ago by Marek Lewandowski

Owner: set to Marek Lewandowski
Status: confirmedassigned

comment:3 Changed 10 years ago by Marek Lewandowski

Status: assignedreview

Pushed to t/11487 at dev and t/11487 at tests.

comment:4 Changed 10 years ago by Piotrek Koszuliński

Status: reviewreview_passed

Pushed one commit to branch:t/11487.

comment:5 Changed 10 years ago by Marek Lewandowski

Resolution: fixed
Status: review_passedclosed

Fixed with git:c018e2daa1 (merged to master) at dev and 9903cdf3b3 (merged to master) at tests.

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