Subj : stripping html from pasted/dropped text
To : netscape.public.mozilla.jseng
From : Travis Raybold
Date : Mon May 24 2004 09:01 am
im trying to get any text pasted or dropped into an editable IFRAME to be
straight text, rather than html. i believe the easiest way would be to force
the dataFlavor to text/unicode, but i cant find any way to set that in
javascript.
alternatively, ill need to custom write some code to parse out all html
tags. but even then, is there a way to modify pasted text as it is being
pasted? in ie i can view and modify the clipboard (not sure i like that
ability!) but mozilla (quite rightly) does not allow that by default. im
actually having trouble getting mozilla to even report a paste event (can
use keypress, but that can miss file/edit/paste, etc).
any thoughts?
thanks in advance!
--frank
.