Bug Tracker


Ticket #10763 (closed bug: cantfix)

Opened 2 years ago

Last modified 2 years ago

data() is gone after drag and drop images in a contenteditable

Reported by: eltapiumaza@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4
Keywords: Cc:
Blocking: Blocked by:


I have an image inside a contenteditable container and I have defined some data to this image with: $('#myImg').data("or_width",100); I see it working well until I drag and drop the image to another position of the contenteditable, then, the associated data dissapear. As a workaround, I have defined the data with: $("#myImg").attr("data-or_width"); With this, I can get the data after move the move, but it is not the best way I think, as that creates a new attribute to the image.

Change History

comment:1 Changed 2 years ago by eltapiumaza@…

This is the JSFIDDLE:  http://jsfiddle.net/euK2F/

comment:2 Changed 2 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to cantfix

Confirmed, but it is not a jQuery problem. All dynamic properties seem to be cleared when the image is moved.


Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.