[DUG-TO] cut/paste from word processors?

Andrew Mallis me at andrewmallis.com
Fri May 29 11:57:17 EDT 2009



A lot of people just paste.
in Drupal 6, using the wysiwyg module + FCKedtor,
I make sure these 2 options are checked.

Convert <font> tags to styles
If enabled, HTML tags declaring the font size, font family, font color  
and font background color will be replaced by inline CSS styles.

Force cleanup on standard paste
If enabled, the default paste function (CTRL-V or SHIFT-INS) behaves  
like the "paste from word" plugin function.

And I make sure to strip out span tags in my input filter


I didn't see the Force cleanup on standard paste option in the  
standard FCKeditor module, but there is probably a custom javascript  
argument for that in the module config if you dig around a bit.


Andrew Mallis
http://andrewmallis.com
skype: andrew_mallis  |  gTalk/Jabber:  andrew.mallis

462 Delaware Avenue
Toronto  |  Ontario   |  M6H 2T9
h:    416-533-2132
c:    416-939-4502






On 29-May-09, at 11:50 AM, Andre Molnar wrote:

> I've had pretty good success with 'paste from word' options in WYSIWYG
> tools.  But, in a way, the whole point of that feature is to get rid  
> of
> the formatting that is coming from the word processor. (by getting rid
> of the gawd awful markup that comes with it)
>
> andre
> Evan Leibovitch wrote:
>> Hi all,
>>
>> I've found that Drupal's easy-to-use text editors not at all useful  
>> if
>> someone wants to cut and paste already-formatted material from a word
>> processor or other PC software. The cut-paste works fine within the
>> editor itself, but not with stuff coming from other apps.
>>
>> I've tried this with TinyMCE, FCKEditor and jWYSIWYG, which all  
>> mangle
>> incoming bullets and other formatting.
>>
>> The problem has been noted at http://drupal.org/node/309828 without  
>> any
>> real resolution.
>>
>> What's the best way to copy-paste from Word without losing the
>> formatting? Any suggestions are appreciated.
>>
>> - Evan
>>
>> _______________________________________________
>> DUG-TO mailing list
>> DUG-TO at lists.openject.com
>> http://lists.openject.com/listinfo/dug-to
>
> _______________________________________________
> DUG-TO mailing list
> DUG-TO at lists.openject.com
> http://lists.openject.com/listinfo/dug-to



More information about the DUG-TO mailing list