...

View Full Version : Paste only plain-text into editable div



big-momo
08-23-2010, 04:32 PM
hi,

i need to be able to allow a user to past into an editable div (via whatever the user chooses: right-click and paste, shortcut key, etc), but i want to discard formatting and only take the plain text.

i can't use a textarea since the div will allow basic formatting (bold and italic) if applied by user-initiated events.

the onbeforepaste event looked promising, but according to quirksmode the support is so limited as to be unusable.

i searched the board, so apologies if this has been asked and answered.

tyia for any suggestions.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum