Opened 9 years ago
Last modified 9 years ago
#14427 confirmed Bug
Image2 widget isn't in the correct state after drag&drop
Reported by: | Alfonso Martínez de Lizarrondo | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.3 |
Keywords: | Cc: |
Description
Steps to reproduce
- Use a page with image2 and a captioned image
- Include also a way to check the currently selected widget like the attached plugin. Check that selecting the widget turns the smiley on and anything else turns it off
- Now drag&drop the image, select again using the cross handles
Expected result
toolbar Icon is on (widget is selected)
Actual result
the toolbar is off, clicking on the image doesn't turn it off until clicking somewhere else and the select the image again
Other details (browser, OS, CKEditor version, installed plugins)
Tested with Chrome
Attachments (1)
Change History (2)
Changed 9 years ago by
Attachment: | image2test.zip added |
---|
comment:1 Changed 9 years ago by
Status: | new → confirmed |
---|---|
Version: | 4.5.7 → 4.3 |
Problem can be reproduced from CKEditor 4.3.0 in all browsers although in Firefox and CKEditor 4.5.8 it seems to kind of work. The icon blinks but final result is that it is enabled.
From what I have checked in plugin code, the refresh function is called quite a few times when we click on the image (3 times) and when we d&d it (7 times). In that firs case the last call results in element while in second case the result is null
(the var el = widget.element;
seem to return null).
sample plugin to detect if an image is selected