How to access the result of a drag and drop (or paste) operation in a contentEditable element?
I have a contentEditable element that should accept drag'n drop actions but I'd like to modify what is being dropped (or pasted) because some HTML tags should be tolerated while others shouldn't.
But how do I access just what has been copied instead of the whole element? When I listen to events on the editable element, then the whole editable element is the context (obviously)...? and the event itself does not开发者_C百科 seem to contain what is being copied (and is different between FF and Webkit).
Any idea?
I posted a similar question today, worded differently, and it was brilliantly answered by user Binary9: Drag and drop event in a contentEditable element
This question should really be closed but I don't know how to do that.
精彩评论