struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Slack" <dsl...@langui.com>
Subject RE: Prevent Word formatting
Date Thu, 25 Jun 2009 20:11:18 GMT
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 Rich Text Editor.  I'd imagine there
are other "clean pastes" out there for non-YUI users..

If you want to disable pasting entirely, you can do some javascript keycode
checking for ctrl-v (although this is NOT fullproof).

Dan Slack

-----Original Message-----
From: Jim Collings [mailto:jlistnews@gmail.com] 
Sent: Thursday, June 25, 2009 2:34 PM
To: Struts Users Mailing List
Subject: Prevent Word formatting

I don't want users pasting in formatting from Word into my Struts II
text area. How can I prevent this?


Jim C.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message