Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-23-2010, 04:32 PM #1
- Join Date
- Aug 2010
- Thanked 0 Times in 0 Posts
Paste only plain-text into editable div
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.