Opened 8 years ago

Last modified 8 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

  1. Use a page with image2 and a captioned image
  2. 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
  3. 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)

image2test.zip (2.1 KB) - added by Alfonso Martínez de Lizarrondo 8 years ago.
sample plugin to detect if an image is selected

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by Alfonso Martínez de Lizarrondo

Attachment: image2test.zip added

sample plugin to detect if an image is selected

comment:1 Changed 8 years ago by Jakub Ś

Status: newconfirmed
Version: 4.5.74.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).

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