[opencms-dev] Cleaning paste from word document - Re-configure jTidy

M Butcher mbutcher at grcomputing.net
Wed Nov 26 06:43:01 CET 2003


Olli,

I wasn't that impressed with htmlArea's spell checker -- it requires 
some perl CGIs on the server. However, I have been happy with the 
quality of HTML that htmlArea puts out -- except that it often uses 
<br/><br/> instead of <p></p> on Mozilla (haven't tested IE on that bug, 
specifically).

The code was a little tought to navigate, but it would be possible to 
make significant modification to the way it works.

And, I think it should work fine with jTidy since the latter runs on the 
server, not the client.

Anyway... I hope you found it helpful.

Matt


Olli Aro wrote:
> Thanks Matt,
> 
> I seems you are right. I found an online tool using htmltidy
> (http://infohound.net/tidy/). It seems the Word 2000 setting does remove
> some of the MS Word formatting, but not all of it.
> 
> HtmlArea looks very interesting and has other useful features as well such
> as a spell check facility. However, I would still need jtidy working as
> well - I would like to ensure that all WYSIWYG produced code is in xhtml and
> know jtidy definetely would be able to do this.
> 
> Regards,
> 
> Olli
> 
> 
>>-----Original Message-----
>>From: opencms-dev-admin at opencms.org
>>[mailto:opencms-dev-admin at opencms.org]On Behalf Of M Butcher
>>Sent: 24 November 2003 19:38
>>To: opencms-dev at opencms.org
>>Subject: Re: [opencms-dev] Cleaning paste from word document -
>>Re-configure jTidy
>>
>>
>>
>>The problem, as I understand it, is that the paste operation pastes in
>>HTML tags. They are identical to the other legitimate HTML tags that are
>>put via the editor, so there is no way for jTidy to tell which it should
>>strip and which it should not.
>>
>>One thing you could do is implement another button -- a "strip
>>formatting" button -- that runs JavaScript that strips out all HTML tags
>>from the text. An editor could then paste text into the window, click
>>the "strip formatting" button, and then add their own formatting.
>>
>>It's still a little clumsy, but it beats the textpad solution.
>>
>>[I think that the "htmlArea" HTML editor (you'll have to google for it)
>>has a function to do this. It's GPL, and written in JaavScript]
>>
>>Matt
>>
>>Olli Aro wrote:
>>
>>>Thanks Chase,
>>>
>>>That is the process I have been recommending before,
>>>but you know how the people are like - they want they
>>>life as easy as possible.
>>>
>>>I am still hoping that there must be a way to do this
>>>with jTidy, since that is what jtidy is for and
>>>opencms uses it already. As far as I can see the
>>>com.opencms.htmlconverter class is an obvious place to
>>>do it, since it is called everytime you save from the
>>>WYSIWYG. Can anyone confirm if I am going to the right
>>>direction with this?
>>>
>>>Olli
>>>
>>>
>>
>>_______________________________________________
>>This mail is send to you from the opencms-dev mailing list
>>To change your list options, or to unsubscribe from the list, please visit
>>http://mail.opencms.org/mailman/listinfo/opencms-dev
>>---
>>Incoming mail is certified Virus Free.
>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>Version: 6.0.537 / Virus Database: 332 - Release Date: 06/11/2003
>>
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.537 / Virus Database: 332 - Release Date: 06/11/2003
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list