TinyMCE inserts hard returns in imported MS Word docs

TheoRichel - March 5, 2008 - 14:18

Whenever I import an MS Word-file in Tiny MCE, with or without the special input filter TinyMCE throws in lots and lots of hard returns that can only be removed manually (through the html-screen).
Not using MS word is no solution: the docs are sent to me in that format and I want to keep the formatting and not do everything manually all over again.
This is not an incident, it happens all the time.

Anyone familiar with this problem, any solutions?

Many thanks

My solution was to paste the

globetrotter - March 5, 2008 - 14:43

My solution was to paste the text into a text editor and then copy it from there to TinyMCE.
You will lose the formatting though... :o)

i would generally caution

arh1 - March 5, 2008 - 18:26

i would generally caution against pasting from MS Word at all. i give this advice to any site content managers, whether they're working with a static site or a CMS with a rich-text editor. in my experience, Word creates such crufty markup that it's more work to clean it up than copying/pasting into a text editor first (not to mention problems with semantics and validation). so i'd agree with djkim.

that said, your issue sounds less like something Word-specific, and more like an input format issue. i would guess that you have the "Line break converter" enabled for the input format you're using.

Thanks to both of you, but

TheoRichel - March 5, 2008 - 19:59

where do I set the Line break Converter?

Thx again

/admin/settings/filters ->

arh1 - March 6, 2008 - 07:19

/admin/settings/filters -> configure (for the appropriate input format) -> Filters

The solution is:

TheoRichel - March 6, 2008 - 15:38

switch line break converter off (/admin/settings/filters -> configure (for the appropriate input format) -> Filters )

and install the module 'Smart Line Break Converter' drupal.org/project/smartlinebreakconverter

 
 

Drupal is a registered trademark of Dries Buytaert.