Pasting from Microsoft word interjects a lot of
(marking new line) and empty lines
(meaning nothing) into the HTML, together these produce HTML that is broken by line breaks over many lines. This foils TWiki's assumption that HTML will be contained on one line.
I'll try to write more when I get time but it seems a conceptually simple task to clean up word HTML a little.
Indeed. Kupu supports the definition of filters that can be used to process pasted HTML. You could add one quite easily, I think.
I don't own a copy of MS Word, so I won't be doing it.
Undeferred, post Dakar CC
If you want to have a go at it, I include a quick n dirty patch I made to at least filter out the windows-only chars put by word pastes, and (some of) gratuitous font typeface settings: see attached convert-office-special-chars.patch
This patches the perl of the plugin, Crawford solution (paste filter) should be the proper one.
See also Item1041
This patch no longer works to get rid of font tags, as of 10 May 06. I think the implementation now wraps them in spans as Crawford wanted to ensure that a user could specify a font.
However, I'd be interested in any updates for this.
This relates to the KupuContrib
, not WysiwygPlugin
, so changing attribution.
I am no longer supporting the KupuContrib
. Please use the TinyMCEPlugin
- 05 Aug 2008