T
Tim Down
I'm developing a WYSIWYG editor using the usual arrangement of an
iframe with designMode turned on and have a problem relating to
detecting and handling user paste actions. I'm using the paste event
in browsers where it exists (which I think is IE 5 and later, Firefox
3 and later and some flavours of WebKit). In other browsers I will
have to resort to detecting key events, thus failing to detect a user
paste from a browser menu or a remapped keyboard shortcut. My problem
is that I can see no way of feature testing for the paste event, and
will be forced into sniffing based on the user agent string. Is there
any way I can avoid this?
Tim
iframe with designMode turned on and have a problem relating to
detecting and handling user paste actions. I'm using the paste event
in browsers where it exists (which I think is IE 5 and later, Firefox
3 and later and some flavours of WebKit). In other browsers I will
have to resort to detecting key events, thus failing to detect a user
paste from a browser menu or a remapped keyboard shortcut. My problem
is that I can see no way of feature testing for the paste event, and
will be forced into sniffing based on the user agent string. Is there
any way I can avoid this?
Tim