I would like to make certain DOM elements copyable. Is it possible to override the browsers default cut copy and paste behavior for elements with a certain class type? Or is the cut copy and paste behavior restricted to selected text?
If this is not possible, what would the best way to make these elements copyable? I have considered creating a custom context menu for these elements which could have cut copy and paste functionality. Would this be the best way to go?
Aucun commentaire:
Enregistrer un commentaire