You are not logged in.
#1 2006-07-28 17:19:20
- mapenn
- Member
- Registered: 2005-09-13
- Posts: 13
Copy / Paste From Email & Word - Solution?
Most of my content originates from text that is copied from Word or directly from emails.
I order to get "clean" copy, I have to first copy/paste it into Notepad and then copy/paste it into the TinyMCE text area. Otherwise, I get all kinds of formatting crap into my HTML code.
Is there a better (more practical) way to do this? Is there a way for TinyMCE to only accept plain text when I paste in content?
Offline
#2 2006-07-29 00:12:49
- Felix Riesterer
- Administrator
- From: Germany
- Registered: 2005-12-30
- Posts: 4601
- Website
Re: Copy / Paste From Email & Word - Solution?
Hi!
There is the possibility to define what attributes certain HTML elements may or may not have. This can be used to delete unwanted formatting.
I've written a similar answer in another thread about this: valid_elements
Greetings from Germany,
Felix Riesterer.
Offline
#3 2006-08-02 06:11:11
- seade
- Member
- From: Sydney, Australia
- Registered: 2005-08-05
- Posts: 113
Re: Copy / Paste From Email & Word - Solution?
Dealing with content pasted in from Word is a real PITA. The content contains all sorts of wonderful crap and this is even different depending on whether IE or Firefox is used.
I use paste_insert_word_content_callback to process some custom regular expressions to strip out as much of the unwanted material as I can. I have actually taken this further and am now implementing a different cleanup routine depending on the content style sheet configured for Tiny (which corresponds to a different template in Word, at least for my documents it does).
Good luck,
Scott
(a.k.a. monkeybrain)
Offline
#4 2006-08-04 16:51:22
- mapenn
- Member
- Registered: 2005-09-13
- Posts: 13
Re: Copy / Paste From Email & Word - Solution?
seade wrote:
I use paste_insert_word_content_callback to process some custom regular expressions to strip out as much of the unwanted material as I can. I have actually taken this further and am now implementing a different cleanup routine depending on the content style sheet configured for Tiny (which corresponds to a different template in Word, at least for my documents it does).
can you elaborate. I'm curious to know exactly how you do this...
Offline
#5 2008-06-04 12:14:51
- PeteW
- Member
- Registered: 2008-06-04
- Posts: 2
Re: Copy / Paste From Email & Word - Solution?
Is there any solution to this issue yet? It seems a very simple and obvious problem.
All I want is for anything CTRL-V'd in to be pasted in as plain text not rich text - is this not possible?
I'm aware that using the 'paste' plugin you can have a seperate button to paste word content (and then strip crappy tags), but in reality no user is ever going to use this and will continue to CTRL-V and thus bypass it.
Offline
#6 2008-06-04 12:53:40
- Felix Riesterer
- Administrator
- From: Germany
- Registered: 2005-12-30
- Posts: 4601
- Website
Re: Copy / Paste From Email & Word - Solution?
Have you read about this thread? Simple Paste Plugin
Maybe it helps a bit...
Greetings from Germany,
Felix Riesterer.
Offline
© 2003-2010