jQuery prevent paste to iframe designmode from MS Word
Posted
by naugtur
on Stack Overflow
See other posts from Stack Overflow
or by naugtur
Published on 2010-03-28T14:11:16Z
Indexed on
2010/03/28
15:13 UTC
Read the original article
Hit count: 587
I've seen some questions on catching the paste event. This looks helpful. But I want to prevent paste on a designmode iframe from happening when the pasted content is not plaintext, but comes from MS Word or other WYSIWYG editor.
What is experience on that?
I suppose I should catch the event (bind to iframe or to its body?) and look for some specific tags in the clipboard. What content does Internet Explorer add every time?
[edit] After doing more research I see there is no easy way to work with clipboard in non Internet Explorer browser except some Flash tricks. I don't want them. How can I detect paste in Firefox and others then?
© Stack Overflow or respective owner