If you want to allow pasting, but just strip out the word formatting, well,
that can be a pain, and the easiest solution is to use javascript.
I've used a library called CleanPaste
(http://antscode.blogspot.com/2009/05/strip-formatting-on-paste-using-yui.ht
ml), however, this is tied to the YUI
Jim Collings wrote:
I don't want users pasting in formatting from Word into my Struts II
text area. How can I prevent this?
Don't allow them to paste?
You'd have to filter via JavaScript or on the server side.
Dave
-
To
2 matches
Mail list logo