makesites / jquery-contenteditable

Automatically adds events on 'contenteditable' fields and returns the changed data for further processing
http://plugins.jquery.com/contenteditable/
66 stars 6 forks source link

Change data-key to nodeName property #4

Open joekode opened 10 years ago

joekode commented 10 years ago

Have you considered changing the user of a data attribute for data-key to using var key = $this["context"].nodeName;

tracend commented 10 years ago

The plugin is initiated once for all contenteditabled fields in a container.

I'm not sure how your suggestion is going to work if you have two elements with the same tag name...