[Typo3] RTE: Pasting Word or RTF Documents

Stefan Beylen intsys at swissinfo.org
Fri Feb 4 08:58:52 CET 2005


Mark wrote:
> The problem isn't really "cleaning" Word files -- it's that they're cleaned
> too much. The client wants to keep the formatting as done in Word. The RTE
> tends to convert everything to text (HTML-formatted text as well.)
> I would like to keep the <font> tags, but they're being stripped no matter
> what settings are used.

shouldnt be too difficult to modify the 50 lines of JavaScript that come with the extension to fulfil your needs ;)
for example see line 28:

---8<-----snip
replace(/<\/?font[^>]*>/gi,'').    // Disable if you want to keep font formatting
---8<-----snap

have a nice day

-- 
  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  Stefan Beylen
  W / private: http://www.lingoist.com
  ICQ private: 19461808
  MSN private: iiioiooo
  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::



More information about the TYPO3-english mailing list